@import url("reset.css");
@import url("layout.css");
@import url("variables.css");
@import url("typography.css");
/* DO NOT EDIT THESE IMPORTS
In order to keep our CSS as manageable as possible, we're starting with multiple separate stylesheets. They are all imported into style.css.

    Do not edit reset.css at all.
    You can minimally edit layout.css to match your specific column/row grid rules. Try to keep all basic structural rules here.
    Optionally, you can set colour variables in variables.css.
    Use typography.css stylesheet to set your general text styles.
    Use style.css for all general UI styles, or anything that you want to overwrite from other stylesheets, because it's loaded last. */

/* Use this stylesheet to add your UI details, and to overwrite layout details for specific instances. */

body {
	font-size: 18px;
}

/* //////////////////// Header ///////////////// */

/* ----------Style the navigation----------- */

nav {
	background-color: #1d1d1d;
	padding: 40px 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: nowrap;
}

nav a {
	color: white;
	text-decoration: none;
	font-family: "Barlow", sans-serif;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.5s ease;
	white-space: nowrap;
}

nav a:last-child {
	margin-right: 0;
}

.nav-links {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 15px;
	flex-shrink: 1;
	min-width: 0;
}

.nav-links a {
	white-space: nowrap;
	font-size: clamp(12px, 3vw, 16px);
}

.ycdesign-logo {
	display: block;
	width: clamp(70px, 15vw, 75px);
	height: auto;
	flex-shrink: 1;
	min-width: 0;
}

/* //////////// Sections and pages //////////// */
/* Style any specific sections or pages here */

/* 
For example, you can add classes to the body tag on any page, and make rules specific to that page:
.homepage {
	background: red;
} */

section {
	padding: 2em;
	border: none;
	margin-bottom: 2em;
}

.about-me {
	background-color: var(--white);
	padding-top: 100px;
}

/* --- PROJECT SECTION ON HOME PAGE --- */

.project-wrapper {
	display: inline-block;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 3em;
}

.project-image {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.project {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	background: var(--green);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	opacity: 0;
}

.project-image:hover .project {
	opacity: 0.8;
	transition: opacity 0.5s ease;
}

.project h3 {
	color: white;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.project-image:hover .project h3 {
	opacity: 100;
}

.icon-row {
	margin-top: 2em;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2em;
}

.icon-box {
	width: 4em;
	height: 4em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icons {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

/* //////////////////// Footer ///////////////// */

footer {
	background-color: #1d1d1d;
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	color: white;
	padding: 4em;
}

img {
	max-width: 100%;
}

hr {
	height: 3px;
	background-color: #1d1d1d;
	border: none;
	margin-top: 4em;
	margin-bottom: 4em;
	opacity: 50%;
}

/* //////////////----Responsive layout - Media queries--------//////////// */

/* //////////// Media queries //////////// */
/* Add and/or edit. */

/* You can edit the rules inside of these media queries, but you can also edit the breakpoints to work for your own content and design. For example, if you want your text rules to change at 600px instead of 768, you can edit the min-width. You can also add more "breakpoints" - more conditions where the rules will change. */

@media (max-width: 600px) {
	/* anything you only want applied at mobile sizes can go here */
	nav {
		padding: 15px 20px;
	}

	.ycdesign-logo {
		max-width: 25vw;
	}
}

@media (min-width: 768px) {
	/* anything you want to kick in at small tablet and above can go here */
}

@media (min-width: 1080px) {
	/* anything you want to kick in at large tablet and above can go here */
}

@media (min-width: 1300px) {
	/* anything you want to kick in at desktop and above can go here */
}
