/* style.css */

.intro-text h2 {
	margin: 0;
	font-family: Roboto, sans-serif;
	color: #436891;
	font-size: 20px;
	font-weight: 100;
	line-height: 1;
}

/* body */
body {
	margin: 0;
	font-family: Roboto, sans-serif;
	color: #436891;
	font-size: 20px;
	font-weight: 100;
	line-height: 1.5;
}

/* Layout Wrapper */
.wrapper {
	max-width: 1100px;
	margin: 0 auto;
	padding: 30px;
}

/* Header & Navigation */
header {
	padding: 40px 0;
}

.header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	width: 250px;
}

nav a {
	text-decoration: none;
	color: #436891;
	margin-left: 20px;
}

/* Project Intro Section */
.intro {
	display: flex;
	gap: 40px;
	margin-bottom: 30px;
	align-items: center;
}

.intro img {
	width: 60%;
	height: auto;
}

.intro-text {
	width: 40%;
}

.intro-text h2 {
	font-size: 50px;
	margin-bottom: 10px;
	font-weight: 500;
}

/* Full Width Image */
/* Cleaned up for perfect alignment and sharpness */
.full-image img {
	width: 1100px; /* Matches your wrapper max-width */
	height: auto;
	display: block;
	margin: 0 auto;
	padding: 30px 0;
	/* This helps browsers render the 2x downscaling cleanly */
	image-rendering: -webkit-optimize-contrast;
}

.two-images {
	display: flex;
	gap: 30px;
	margin-top: 40px;
	margin-bottom: 40px; /* Reduced from 120px to bring navigation closer */
}

.two-images img {
	width: calc(50% - 10px); /* Exactly half minus half the gap */
	height: auto;
}

/* Footer */
footer {
	background-color: #436891;
	color: #fef4e0;
	padding: 80px 0;
	margin-top: 60px;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

/* Left side */
.footer-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-email,
.footer-phone {
	margin: 0;
	text-decoration: none;
	color: #fef4e0;
}

/*  Socials  */
.social-links {
	display: flex;
	align-items: center;
	gap: 15px;
}

.social-links a {
	display: flex;
	align-items: center;
}

.social-icon {
	width: 25px;
	height: 25px;
	object-fit: contain;
	display: block;
}
/* This sets the starting point and makes the movement smooth */
.social-icon {
	transition: transform 0.3s ease; /* This is the "speed" of the enlargement */
	display: inline-block; /* Helps the transform work correctly */
}

/* This is the hover state */
.social-icon:hover {
	transform: scale(1.2); /* This makes it  larger when hovered */
}

/* Right side of footer */
.footer-right {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /*  aligns the text inside to the LEFT */
	text-align: left; /* Ensures multiple lines of text start at the same spot */
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	max-width: 1100px; /* Match  wrapper width */
	margin: 0 auto; /* Centers the footer content */
	padding: 0 20px; /* Match wrapper padding */
}

/* Back to top */
.back-to-top {
	display: block;
	text-decoration: none;
	color: #fef4e0;
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 18px;
}

.copyright {
	margin: 0;
	font-size: 16px;
	opacity: 0.8;
}
/* Navigation links */
/* I used a transition so the color and underline change smoothly
   (https://www.w3schools.com/css/css3_transitions.asp) */
nav a {
	text-decoration: none;
	color: #436891;
	margin-left: 20px;
	transition: all 0.3s ease;
}

/* On hover, the link lightens and adds an underline */
nav a:hover {
	color: #5a8bc2;
	text-decoration: underline;
}
/* --- Single Combined Pagination Section --- */
.pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-top: 30px;
	margin-bottom: 10px;
}

.pagination a {
	text-decoration: none;
	color: #436891;
	transition: all 0.3s ease;
}

/* This keeps the middle link (Home) underlined */
.pagination a:nth-child(2) {
	text-decoration: underline;
}

.pagination a:hover {
	color: #5a8bc2;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.intro {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

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

	.intro-text h2 {
		font-size: 32px;
		line-height: 1.1;
	}

	.intro-text p {
		font-size: 16px;
		line-height: 1.5;
	}

	.wrapper {
		padding: 0 16px;
	}

	.two-images {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.pagination {
		display: flex;
		justify-content: space-between;
		font-size: 14px;
		padding: 20px 0;
	}

	.header-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	nav {
		display: flex;
		gap: 16px;
	}
}
/* This hides anything with the class "hide-mobile" only on small screens */
@media (max-width: 768px) {
	.hide-mobile {
		display: none !important;
	}
}
