@import url("reset.css");
@import url("layout.css");
@import url("variables.css");
@import url("typography.css");

/* ---  Styles --- */
html {
	scroll-behavior: smooth; /* Makes the page scroll nicely when clicking links */
}
body {
	color: var(--blue);
	font-family: "Roboto", sans-serif;
	margin: 0;
	padding: 0;
}

/* Styling the text inside the hero section */
.hero-content p {
	margin-top: 0;
	margin-bottom: 15px;
	position: relative;
	z-index: 10;
	font-family: "Roboto", sans-serif;
	color: #fef4e0;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	max-width: 450px;
}

/* About section text styling */
.about p {
	font-size: 16px;
	z-index: 10;
	line-height: 1.5;
	max-width: 900px;
	text-align: left;
}

/* Keeping content centered with the box  */
/* https://www.w3schools.com/css/css_boxmodel.asp */
.inner-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

/* Main Headings */
h1 {
	font-family: "aesthet-nova", serif;
	font-weight: 500; /* Use 700 for Bold, 400 for Regular */
	font-style: normal;
	color: #fef4e0;
	margin-bottom: 1rem;
	margin-top: 1rem;
	font-size: 100px;
}

h2 {
	font-family: "aesthet-nova", serif;
	font-weight: 600; /* Use 700 for Bold, 400 for Regular */
	font-style: normal;
	color: #fef4e0;
	margin-bottom: 1rem;
	font-size: 45px;
}

h3 {
	font-family: "Roboto", sans-serif;
	font-weight: 400;
	color: #436891;
	margin-top: 15px;
	margin-bottom: 5px;
	font-size: 80px;
}

/* Using Flexbox for the header layout */
/* https://www.w3schools.com/css/css3_flexbox.asp */
header .inner-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
}

.logoimg {
	width: 275px;
}

/* Basic link styling */
/* https://www.w3schools.com/css/css_link.asp */
nav a {
	margin-right: 30px;
	text-decoration: none;
	color: #436891;
	font-weight: 400;
	font-size: 20px;
}

/* Secondary link block for transitions */
nav a {
	margin-right: 30px;
	text-decoration: none;
	color: #436891;
	font-weight: 400;
	font-size: 20px;
	transition: all 0.3s ease;
	display: inline-block;
}

/* Hover effect for the menu */
nav a:hover {
	color: #5a8bc2;
	text-decoration: underline;
	transform: translateY(-2px);
}

/* Hero section background and height */
.hero {
	background: #436891;
	color: #fef4e0;
	height: 70vh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	margin-top: 20px;
}

.hero-content {
	position: relative;
	z-index: 10;
}

/* Making the button stand out and styling it */

/* I used !important to override other styles - https://www.w3schools.com/css/css_important.asp */
.btn-outline {
	display: inline-block !important; /* lets me add padding while staying in line */
	color: #fef4e0 !important; /* button text color */

	visibility: visible !important;

	/* Sizing and shape of the button */
	/* https://www.w3schools.com/css/css_padding.asp */
	padding: 15px 35px;
	border: 2px solid #fef4e0;
	border-radius: 50px; /* gives it those rounded pill edges */

	/* Text and alignment */
	text-decoration: none !important; /* removes the link underline */
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	line-height: 1;

	/* Layering it on top of background shapes */
	/* https://www.w3schools.com/css/css_z-index.asp */
	position: relative;
	z-index: 999; /* puts this on the very top layer */
	margin-top: 25px;

	/* Smooth transition for when I add a hover effect later */
	/* https://www.w3schools.com/css/css3_transitions.asp */
	transition: all 0.3s ease;
}

.btn-outline:hover {
	background-color: #fef4e0 !important;
	color: #436891 !important;
}

.button-wrap {
	animation-delay: 0.6s;
	margin-top: 40px;
}

/* Container for the background and my vector shapes */
.shape-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Base shape styling and animation */
.shape {
	position: absolute;
	animation:
		fadeInSlide 0.5s forwards,
		floatSide 2s ease-in-out infinite;
}

/* Simple keyframe for the floating effect */
@keyframes floatSide {
	0% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(10px);
	}
	100% {
		transform: translateX(0);
	}
}

/* Project grid setup */
/* https://www.w3schools.com/css/css_grid.asp */
.project-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 60px 0;
}

/* Making sure images fill the grid space */
/* https://www.w3schools.com/css/css_rwd_images.asp */
.project img {
	width: 100%;
	height: auto;
	display: block;
}

.project p {
	margin: 10px 0 5px 0;
	font-size: 1.1rem;
	color: #436891;
}

.project a {
	color: #436891;
	font-size: 0.9rem;
	text-decoration: underline;
}

/* About section block */
.about {
	background: #436891;
	color: #fef4e0;
	padding: 20px 0;
}

/* Flexbox to put about image and text next to each other */
.about .inner-wrapper {
	display: flex;
	gap: 60px;
}

.about-img {
	width: 50%;
	height: auto;
	display: block;
}

.about-me {
	display: flex;
	flex-direction: column;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 700px) {
	.project-grid {
		grid-template-columns: 1fr;
	}

	.about .inner-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.copyright {
		margin-left: auto;
		width: fit-content;
	}
	.shape-container {
		display: none;
	}
}

/* Footer layout */
.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	margin-top: 20px;
}

/* Arrow indicators */
.arrow-down {
	display: block;
	font-size: 60px;
	color: #fef4e0;
	line-height: 1;
	margin: 20px 0;
}

.arrow-up {
	display: block;
	font-size: 60px;
	color: #436891;
	line-height: 1;
	margin: 20px 0;
}

/* --- Project Hover Animation --- */
.project {
	transition:
		transform 0.4s ease,
		box-shadow 0.4s ease;
	cursor: pointer;
}

.project:hover {
	transform: translateY(-10px);
}

.project img {
	transition: opacity 0.3s ease;
}

.project:hover img {
	opacity: 0.9;
}

.project:hover a {
	color: #5a8bc2;
	text-decoration: none;
}

/* Shape container duplicate block for positioning */
/* https://www.w3schools.com/css/css_positioning.asp */
.shape-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Shape animation repeat block */
.shape {
	position: absolute;
	animation:
		fadeInSlide 0.5s forwards,
		floatSide 2s ease-in-out infinite;
	transform-origin: center;
}

/* Float animation repeat */
@keyframes floatSide {
	0% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(10px);
	}
	100% {
		transform: translateX(0);
	}
}

/* Specific positions for each background shape */
.s1 {
	right: 35%;
	top: 0%;
	width: 140px;
	animation-delay: 1s, 1s;
}
.s2 {
	right: 20%;
	top: 15%;
	width: 40px;
	animation-delay: 1.5s, 1.5s;
}
.s3 {
	top: 55%;
	right: 30%;
	width: 130px;
	animation-delay: 2s, 2s;
}
.s4 {
	top: 75%;
	right: 15%;
	width: 110px;
	animation-delay: 2.5s, 2.5s;
}
.s5 {
	top: 45%;
	right: 55%;
	width: 90px;
	animation-delay: 3s, 3s;
}
.s6 {
	top: 90%;
	right: 50%;
	width: 100px;
	animation-delay: 3.5s, 3.5s;
}

/* Social media link layout */
.social-links {
	display: flex;
	gap: 15px;
}

/* Secondary About block for shapes */
.about {
	background: #436891;
	color: #fef4e0;
	padding: 20px 0;
	position: relative;
	overflow: hidden;
}

.about-shapes {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.about-shape {
	position: absolute;
	opacity: 0.9;
}

.a1 {
	top: 20px;
	right: 60px;
	width: 120px;
}
.a2 {
	bottom: 20px;
	right: 40px;
	width: 100px;
}

/* --- Footer Styling --- */
.contact-details a,
.contact-details p {
	display: block;
	text-decoration: none;
	color: #436891;
	margin: 3px 0;
}

/* Bottom row layout using flexbox space-between */
.footer-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 10px;
}

.footer-right-group {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

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

.social-icon {
	width: 35px;
	height: auto;
}
/* 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 20% larger when hovered */
}

/* Styling the back-to-top arrow */
.arrow-up {
	text-decoration: none;
	font-size: 40px;
	color: #436891;
	line-height: 1;
	margin-bottom: 5px;
}

.copyright {
	margin: 0;
	font-size: 14px;
	color: #436891;
}
html {
	scroll-behavior: smooth;
}

@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;
	}
}
/* --- Mobile View Adjustments --- */

@media (max-width: 768px) {
	/* 1. FORCE FULL BLEED IMAGE */

	section.intro,
	.full-image {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
	}

	section.intro img,
	.full-image img {
		width: 100vw !important; /* Forces image to be exactly the width of the phone screen */
		max-width: none !important;
		display: block !important;
		margin: 0 !important;
	}

	/* 2. KEEP TEXT LEFT ALIGNED (WITH PADDING) */

	.intro-text {
		padding: 20px !important;
		text-align: left !important;
		width: 100% !important;
		box-sizing: border-box;
	}

	/* 3. ALIGN PORTFOLIO/CONTACT TO THE RIGHT */
	header .header-row,
	header .wrapper {
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important; /* Logo left, Nav right */
		align-items: flex-start !important;
		width: 100% !important;
		padding: 15px 20px !important;
		box-sizing: border-box;
	}

	nav {
		display: flex !important;
		flex-direction: column !important; /* Stack Portfolio over Contact */
		align-items: flex-end !important; /* This is the Right Align */
		text-align: right !important;
		margin-left: auto !important; /* Pushes the whole block to the right */
	}

	nav a {
		margin-right: 0 !important; /* Removes any desktop spacing */
		padding-right: 0 !important;
		display: block !important;
	}
}
/* --- Hide About Me Shapes on Mobile --- */
@media (max-width: 768px) {
	/* Targets the specific background shapes in the about section */
	.about-shape,
	.shape {
		display: none !important;
	}

	.about .shape,
	.about-me .shape {
		display: none !important;
	}
}
