* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root
{
	--main: #0A192F;
	--accent: #64FFDA;
	--sections: #112240;
	--smalltext: #8892B0;
	--maintext: #CCD6F6;
	
}

a
{
	text-decoration: none;
	color: var(--main);
	
	transition: color 0.15s, scale 0.15s;
}

a:hover
{
	scale: 1.03;
	color: var(--accent);
	transition: color 0.2s, scale 0.2s;
	
}


body
{
	background-color: #FAF9F6 ;
	font-family: "Outfit";
	height: 100%;
	margin-right: 0;
}

textarea:focus {
  border: 1px solid var(--accent); 
}

input:focus {
  border: 1px solid var(--accent); 
}

#container
{
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	
}

.outfit-<uniquifier> 
{
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.menu
{
	background-color: #FFFFFF;
	color: var(--main);
	display: flex;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}


#logo
{
	font-size: 30px;
	margin-left: 2%;
	min-width: 70%;
	padding: 15px 0 15px 0;
	text-align: left;
}

.navi
{
	margin-top: auto;
	margin-bottom: auto;
	font-weight: 600;
	min-width: 27%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 10px;
	
	
}

.hero
{
	display: flex;
	flex-direction: row;
	background-color: var(--main);
	
}

.main-box
{
	
	display: flex;
    min-width: 70%;
	min-height: 100%;
	padding: 10px;
	color: white;

}

.text-box
{
	min-width: 40%;
	max-width: 80%;
	padding: 10px;
	margin-top: auto;
	margin-bottom: auto;
}


.section-title
{
	text-align: center;
	font-size: 45px;
	font-weight: 900;
	padding: 10px;
	letter-spacing: 2px;
	color: var(--sections);
	
}

.section-text
{
	padding: 10px;
	text-align: justify;
	font-size: 23px;
	font-weight: 400;
	color: var(--smalltext);
	
}

.project-box
{
	margin-left: 10px;
	margin-right: 10px;
	
	margin-bottom: 20px;
	margin-top: 20px;
	width: 270px;
	height: 270px;
    overflow: hidden;
	position: relative;
	
	/* From https://css.glass */
background: rgba(10, 25, 47, 0.86);
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(7.3px);
-webkit-backdrop-filter: blur(7.3px);
border: 1px solid rgba(10, 25, 47, 0.3);
	
	
}

.projects
{
	justify-content: space-between;
	display: flex;
	flex-direction: row;
}

.project-box .default,
.project-box .hovered {
  position: absolute;
  inset: 0;                 /* ← ustawia top:0; right:0; bottom:0; left:0 */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  transition: .3s;
}

.default { opacity: 1; }

/* warstwa hover ukryta */
.hovered { opacity: 0; font-size: 16px; text-align: center; padding: 5px;}

/* hover → podmiana widoczności */
.project-box:hover .default { opacity: 0; }
.project-box:hover .hovered { opacity: 1; scale: 1.05;}

#prof-img
{
	margin-top:auto; margin-bottom: auto;
	width: 200px; height: 200px; margin-left: auto; margin-right: auto;
	border-radius: 50%;
	box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.5);
	
}

.glass-section
{
	margin-top: 50px;
	
	/* From https://css.glass */
background: rgba(204, 214, 246, 0.48);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(7.2px);
-webkit-backdrop-filter: blur(7.2px);
border: 1px solid rgba(204, 214, 246, 0.01);
}

.base-btn
{
	margin-top: 10%;
	margin-left: 2%;
	
	color: var(--main);
	font-weight: 600;
	background-color: var(--maintext);
	box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 8px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
	border: 0; 
	padding: 20px 30px 20px 30px;
	font-size: 20px;
	border-radius: 30px;
	
	transition: background-color 0.2s, scale 0.2s;
}

.base-btn:hover
{
	cursor: pointer;
	
	scale: 1.05;
	background-color: var(--accent);
	transition: background-color 0.2s, scale 0.2s;
}

.contact-box
{
	display: flex;
	flex-direction: row;
	 margin-top: 20px;
}

.form-field
{
	padding: 5px;
	border-radius: 16px;
	min-width: 70%;
	height: 40px;
	border: 0;
	
/* From https://css.glass */
background: rgba(29, 137, 148, 0.20);
border-radius: 16px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(8.7px);
-webkit-backdrop-filter: blur(8.7px);
}

.contact-form
{
	min-width: 45%;
	margin: auto;
}

#project-img1
{
	width: 250px;
	border-radius: 16px;
}



#me {
  scroll-margin-top: 100px; /* dostosuj do wysokości nagłówka */
}

#me-content
{
	display: flex; flex-direction: row;
}

#projects {
  scroll-margin-top: 100px; /* dostosuj do wysokości nagłówka */
}

#contact
{
	scroll-margin-top: 100px;
}

#start
{
	scroll-margin-top: 80px;
}

#title
{
	color: var(--maintext);
	width: 100%;
	height: inherit;
	margin-bottom: 10px;
}

#desc
{
	color: var(--smalltext);
	text-align: justify;
}

#main-image
{
	
}

#form-id
{
	display: flex;
	flex-direction: column;
}

h1
{
	letter-spacing: 1px;
	font-size: 45px;
}


@media (min-width: 700px) and (max-width: 1000px)
{
	#logo
	{
	font-size: 30px;
	margin-left: 2%;
	min-width: 55%;
	padding: 15px 0 15px 0;
	text-align: left;
	}

	.navi
	{
	
	min-width: 42%;
	}
}

@media (max-width: 700px)
{
	
	body
	{
		width: 100dvw !important;
	}
	
	#logo
	{
		width: 100%;
		text-align: center;
	}
	
	.form-field 
	{
		width: 100%;
	}
	
	textarea
	{
		width: 100% !important;
	}

	
	#desc
	{
		text-align: center;
	}
	
	#container
	{
		
	}
	
	#form-id
	{
		min-width: 100%;
	}
	
	.contact-box
	{
		flex-direction: column;
	}
	
	
	#submit-btn
	{
		text-align: center !important;
	}
	
	#me-content
	{
		flex-wrap: wrap;
		flex-direction: column;
	}
	
	#main-image-src
	{
		width: 200px !important;
	}
	
	.main-box
	{
		width: 100% !important;
		flex-direction: column;
		align-items: center;
	}
	
	.section-text
	{
		width: 100% !important;
		text-align: center;
	}
	
	.navi
	{
		display: none;
	}
	
	.hero
	{
		text-align: center;
		flex-direction: column;
		flex-wrap: wrap;
		width: 100%;
	}
	
	.projects
	{
		flex-direction: column;
		align-items: center;
	}
	
	.glass-section
	{
		margin-left: 15px;
		margin-right: 15px;
	}
	
	.contact-img
	{
		
		align-items: center;
		width: 100% !important;
	}
	
	#contact-img1
	{
		width: 100% !important;
	}
	
	.contact-form
	{
		min-width: 70% !important;
	}
	
	
	
	    #orderA { order: 2; }
		#prof-img { order: 1; }
	
}