/* ==========================================================
   Uranus page styling. Comments to explain what's happening.
   ========================================================== */
   
   
/* Remove default browser margins, padding, and ensure consistent box-sizing */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Base body styles - sets the foundation for the entire page */
body {
	font-family: Palatino, serif; /* Lovely serif font */
	line-height: 1; /* Comfortable reading spacing */
	color: #062c43; /* Primary text color */
	background: linear-gradient(135deg, #ced7e0 0%, #88aaee 100%); /* Diagonal gradient background */
	min-height: 100vh; /* Ensure page fills at least full viewport height */
}

/* Header Styles */
header {
	background: linear-gradient(135deg, #112277 0%, #224499 100%); /* Header Gradient */
	padding: 1.0rem 0; /*Vertical spacing for the header. Rem is really cool, because it does subtle changing based on the size of the root element*/ 
	box-shadow: 0 4px 20px rgba(6, 44, 44, 0.3); /*Drop shadow with blur for a little depth*/ 
	position: sticky; /* this is what keeps the header stuck at the top when scrolling */
	top: 0; /*makes sure the header is at the top of the viewport */
	z-index: 100; /*what keeps the header above the rest of the content */
}

/* Keeps the width resonable on larger screens, and makes the logo and nav links seperate  Space between means the extra space is between the elements and not on either side*/
nav {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/*Uranus Robotics logo styling */ 
.logo {
	color: #bbccff;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/*gives horizontal layout, and describes the distance between the items */
.nav-links {
	display: flex;
	gap: 3rem;
}

/*link styling. Decoration none removes the underline. Padding makes the clickable area larger */
nav a {
	color: #ddeeff;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.05rem;
	padding: 0.5rem 0;
}

/* Main Content */
main {
	max-width: 1400px;
	margin: 0 auto;
	padding: 4rem 3rem 0;
}

/* Intro Text Block  Some padding and shadows to make it pop*/
.intro-text {
	background: rgba(255, 255, 255, 0.85);
	padding: 1.5rem 3rem;
	margin-bottom: 2rem;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(6, 44, 67, 0.15);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(206, 215, 224, 0.5);
}

/*text styling of the main title */
.intro-text h1 {
	font-size: 3.5rem;
	margin-bottom: .7rem;
	color: #062c43;
	font-weight: 700;
	letter-spacing: -0.5px;
}

/*text styling of the sub title */
.intro-text p {
	font-size: 2.2rem;
	color: #2244aa;
	max-width: 900px;
	margin: 0 auto;
	font-weight: 300;
	line-height: .7;
}

/* Image Container. The FR is fractional units. fractions, meaning each one gets 50% of the space*/
.image-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin-bottom: 4rem;
}

/*makes sure the slight rounding on the corners. A bit vestigial after clipping out the robots*/
.image-block {
	border-radius: 4px;
	overflow: hidden;
}

/* The image itself fill. Currently if the images are different heights the size will change. With a cool gradient */
.image-block img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: fill;
	background: linear-gradient(to right, #aabbff 0%, #ced7e0 100%);
}

/* this reverses the gradient for the 2nd one. I thought it looked cooler*/
.image-block:nth-child(2) img {
	background: linear-gradient(to right, #ced7e0 0%, #aabbff 100%);
}

/*the caption block below each image*/
.caption {
    background: #2244aa; /** linear-gradient(135deg, #2244ee 0%, #5566cc 100%); **/
	padding: 2rem;
	text-align: left;
}


/*the text styling of the header*/
.caption h3 {
	margin-bottom: 0.75rem;
	color: #ffffff;
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.3px;
}

/*the text styling of the paragraph*/
.caption p {
	color: #ddeeff;
	font-size: 1.1rem;
	line-height: 1.5;
	font-weight: 300;
}

/* Footer */
footer {
	background: linear-gradient(135deg, #112277 0%, #224499 100%);
	color: #ced7e0;
	text-align: center;
	padding: 2.5rem;
	margin-top: 2rem;
	box-shadow: 0 -4px 20px rgba(6, 44, 67, 0.2);
}

/*text styling of the footer*/
footer p {
	font-size: 0.95rem;
	font-weight: 300;
}

/* Responsive Design. This ensures it renders well in tablet size*/
@media (max-width: 1024px) {
	.intro-text h1 {
		font-size: 2.8rem;
	}

	nav {
		padding: 0 2rem;
	}

	main {
		padding: 3rem 2rem;
	}
}

/* Responsive design. This ensures it looks good on mobile devices. Notably changes the fr to 1 total, so it goes to single image*/
@media (max-width: 768px) {
	.image-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.intro-text h1 {
		font-size: 2.2rem;
	}

	.intro-text p {
		font-size: 1.05rem;
	}

	.intro-text {
		padding: 2.5rem 2rem;
	}

	nav {
		padding: 0 1.5rem;
	}

	.logo {
		font-size: 1.2rem;
	}

	.nav-links {
		gap: 2rem;
	}

	main {
		padding: 2rem 1.5rem;
	}

	.caption {
		padding: 1.5rem;
	}
}
