@charset "utf-8";
/* CSS Document */

/* Overall page perameters */

:root {
	--primary-color: #FFFFFF;
	--hover-color: #B5B5B5;
	--accent-color: #0071FF;
	--text-color: #000000;
}

*{
	margin: 0;
	padding: 0;
	background-color: #D1D1D1;
	box-sizing: border-box;
}

html{
	font-family: poppins, "Segoe UI", sans-serif;
	color: var(--text-color);
}

body{
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px;
	min-height: 100vh;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

main{
	padding: min(5em, 7%);
}

main p{
	margin-top: .40em;
}


/* Navigation bar */

nav{
	border-bottom: 1px solid var(--hover-color);
}

nav ul{
	list-style: none;
	display: flex;
}

nav .home-li{
	margin-right: auto;
}

nav li{
	display: flex;
}

nav a{
	display: flex;
	text-decoration: none;
	color: var(--text-color);
	padding: 1em 2em;
	transition: background-color 150ms ease;
}

nav a:hover{
	background-color: var(--hover-color);
}

nav a.active-link{
	border-bottom: 2px solid var(--text-color);
}

#open-sidebar-button{
	display: none;
	background: none;
	border: none;
	padding: 1em;
	margin-left: auto;
	cursor: pointer;
}

#close-sidebar-button{
	display: none;
	background: none;
	border:none;
	padding: 1em;
	cursor: pointer;
}

#overlay{
	position: fixed;
  	top: 0; 
  	right: 0;
 	height: 100vh;
  	width: 100%;
	z-index: 8;
  	background-color: rgba(255, 255, 255, 0.15);
  	backdrop-filter: blur(6px);
  	box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  	list-style: none;
  	display: none;
  	flex-direction: column;
  	align-items: flex-start;
  	justify-content: flex-start;
}

.skip-link{
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1000;
	background-color: var(--accent-color);
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	font-size: 1rem;
	transition: opacity 0.3s ease;
}

.skip-link:focus {
	opacity: 1; /* Make visible on focus */
	pointer-events: auto; /* Enable interaction */
	outline: 3px solid #FFFFFF; /* Optional outline for extra visibility */
}

footer {
	display: block;
	clear: both;
	width: 100%;
}

.footer-text {
	text-align: center;
	color: var(--text-color);
	padding: 10px;
}

.hero {
	padding: 30px 20px 50px 20px;
	text-align: center;
	text-width: 100%;
}

.contact-hero {
	padding: 30px 20px 30px 20px;
	text-align: center;
	text-width: 100%;
}


/* Image slider */

#slider {
	overflow: hidden;
	border-radius: 15px;
	border: 5px #000000;
	box-shadow: 2px 2px 5px rgba(0,0,0,.5);
}

#slider figure {
	position: relative;
	width: 700%;
	margin: 0;
	left: 0;
	animation: 42s slider infinite;
}

#slider figure img {
	float: left;
	width: 14.285714%;
}

@keyframes slider {
	0% {
		left: 0;
	}
	11% {
		left: 0;
	}
	15% {
		left: -100%;
	}
	26% {
		left: -100%;
	}
	30% {
		left: -200%;
	}
	41% {
		left: -200%;
	}
	45% {
		left: -300%;
	}
	56% {
		left: -300%;
	}
	60% {
		left: -400%;
	}
	71% {
		left: -400%;
	}
	75% {
		left: -500%;
	}
	86% {
		left: -500%;
	}
	100% {
		left: -600%;
	}
}

/* Reference carousel */

.references {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 15px;
}

.carousel {
	width: 100%;
	max-width: 1200px;
	overflow: hidden;
	position: relative;
	border-radius: 10px;
	border: 2px solid #FFFFFF;
	justify-content: center;
	align-items: center;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	background-color: #DEDEDE;
	padding: 30px;
}

.carousel:hover {
	transform: scale(1.05);
}

.column-references {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 100%;
	margin-top: 50px;
	margin-bottom: 50px;
}

/* Projects gallery */

.container {
	width: 100%;
	margin: auto;
	padding: 40px 0px;
}

.photo-gallery {
	display: flex;
	gap: 20px;
}

.column {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 33.3%;
}

.container img {
	width: 20%;
	float: left;
	margin-right: 20px;
}

.container-profile img {
	width: 30%;
	float: left;
	margin-right: 20px;
}

.column p {
	width: 80%;
	float: left;
}

.photo {
	position: relative;
	overflow: hidden;
	gap: 20px;
	padding: 5px;
}

.photo img {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	border: 5px #000000;
	box-shadow: 2px 2px 5px rgba(0,0,0,.5);
	overflow: hidden;
	object-fit: cover;
}

.overlay-photo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(128, 128, 128, 0.5);
	backdrop-filter: blur(6px);
	border-radius: 10px;
	color: white;
	font-size: 16px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.photo:hover .overlay-photo {
	opacity: 1;
}

.btn-top {
	position: relative;
	padding: 0.6rem 1rem;
	background-color: #E5E5E5;
	border: 2px solid #E5E5E5;
	color: #7F7F7F;
	font-size: 0.9rem;
	font-weight: 400;
	justify-content: center;
	line-height: 1;
	border-radius: 20px;
	box-shadow: 2px 2px 5px rgba(0,0,0,.5);
	outline: none;
	cursor: pointer;
	width: 20%;
	margin: 10px;
	transition: 0.3s;
}

.btn-top:hover {
	background-color: transparent;
	color: #E5E5E5;
}


/* Contact Form */

.container-contact {
	position: relative;
	width: 100%;
	min-height: 70vh;
	padding: 0.2rem;
	overflow: hidden;
	justify-content: center;
	align-items: center;
	display: flex;
}

.form {
	width: 100%;
	max-width: 1000px;
	border-radius: 10px;
	box-shadow: 2px 2px 5px rgba(0,0,0,.5);
	z-index: 1000;
	overflow: hidden;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.contact-form {
	background-color: #51827C;
	position: relative;
}

form {
	padding: 2.3rem 2.2rem;
	background-color: transparent;
	z-index: 10;
	overflow: hidden;
	position: relative;
}

.title {
	color: #E5E5E5;
	background-color: transparent;
	font-weight: 500;
	font-size: 1.5rem;
	margin-bottom: 0.7rem;
	line-height: 1;
}

.input-container {
	position: relative;
	margin: 1rem 0;
	background-color: transparent;
}

input {
	width: 100%;
	outline: none;
	border: 2px solid #E5E5E5;
	background: transparent;
	color: #E5E5E5;
	padding: 0.6rem 1.2rem;
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	border-radius: 5px;
	transition: 0.3s;
}

textarea.input {
	padding: 0.8rem 1.2rem;
	min-height: 150px;
	border-radius: 5px;
	resize: none;
	overflow-y: auto;
	outline: none;
	background: transparent;
	border: 2px solid #E5E5E5;
	width: 100%;
	color: #E5E5E5;
	font-size: 0.95rem;
}

.input-container label {
	position: absolute;
	top: 18px;
	left: 15%;
	transform: translateY(-50%);
	color: #E5E5E5;
	font-size: 0.9rem;
	font-weight: 400;
	pointer-events: none;
	z-index: 1000;
	transition: 0.5s;
	padding: 0 0.4rem;
}

.input-container .textarea label {
	top: 1rem;
	transform: translateY(0);
}

.btn {
	padding: 0.6rem 1.3rem;
	background-color: #E5E5E5;
	border: 2px solid #E5E5E5;
	color: #51827C;
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1;
	border-radius: 20px;
	outline: none;
	cursor: pointer;
	width: 40%;
	margin: 0;
	transition: 0.3s;
}

.btn:hover {
	background-color: transparent;
	color: #E5E5E5;
}

.input-container label {
	background-color: transparent;
}

.input-container span {
	position: absolute;
	top: 0;
	left: 25px;
	transform: translateY(-50%);
	font-size: 0.8rem;
	padding: 0 0.4rem;
	color: transparent;
	background-color: transparent;
	pointer-events: none;
	z-index: 500;
}

.input-container span:before,
.input-container span:after {
	content: '';
	position: absolute;
	width: 10%;
	opacity: 0;
	transition: 0.3s;
	height: 5px;
	background-color: #51827C;
	top: 50%;
	transform: translateY(-50%);
}

.input-container span:before {
	left: 50%;
}

.input-container span:after {
	right: 50%;
}

.input-container.focus label {
	top: 0;
	transform: translateY(-50%);
	left: 25px;
	font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
	width: 50%;
	opacity: 1;
}

.contact-info {
	padding: 2.3rem 2.2rem;
	position: relative;
	background-color: #E5E5E5;
}

.contact-info .title {
	color: #51827C;
	background-color: transparent;
}

.text {
	color: #000000;
	background-color: transparent;
	font-weight: 400;
	margin: 1.5rem 0 2rem 0;
}

.info {
	background-color: transparent;
}

.information {
	display: flex;
	color: #000000;
	background-color: transparent;
	margin: 0.7rem;
	text-align: left;
	font-size: 0.95rem;
}

.information i {
	background-color: transparent;
}

.information p {
	background-color: transparent;
	font-weight: 400;
}

.social-media {
	padding: 2rem 0 0 0;
	background-color: transparent;
}

.social-media a {
	color: #000000;
	background-color: transparent;
}

.social-media p {
	color: #000000;
	background-color: transparent;
	text-align: left;
	font-weight: 400;
}

.social-icons {
	display: flex;
	margin-top: 0.5rem;
	background-color: transparent;
}

.social-icons i {
	background-color: transparent;
}

.social-icons a {
	width: 30px;
	height: 30px;
	color: #000000;
	background-color: transparent;
	text-align: center;
	line-height: 30px;
	margin-right: 1rem;
	transition: 0.3s;
}

.social-icons a:hover {
	transform: scale(1.1);
	color: #4B4B4B;
	background-color: transparent;
}


/* Text styles */

h1 {
	font-size: 80px;
	text-transform: uppercase;
	color: var(--text-color);
	font-weight: 300;
	margin-bottom: 60px;
	padding-top: 50px;
	text-align: center;
}

h2 {
	font-size: 35px;
	text-align: center;
	color: var(--text-color);
	font-weight: 300;
	margin-bottom: 23px;
}

h3 {
	font-size: 20px;
	color: var(--text-color);
	font-weight: 400;
	margin-bottom: 30px;
}

h4 {
	font-size: 16px;
	color: var(--text-color);
	font-weight: 200;
	margin-bottom: 35px;
}

p {
	font-size: 16px;
	color: var(--text-color);
	font-weight: 200;
	margin-bottom: 35px;
}

.project-image {
	margin: 25px 0px;
	text-align: center;
}

.project-image img{
	width: 100%;
	height: auto;
	margin: auto;
	display: flex;
	flex-direction: column;
	padding: 0px;
	border-radius: 10px;
	box-shadow: 2px 2px 5px rgba(0,0,0,.5);
}

.project-credits {
	margin: auto;
	display: flex;
	flex-direction: column;
	text-align: center;
	padding: 20px 0px;
}

.contact-text {
	position: relative;
	width: 100%;
	text-align: center;
	padding: 10px 0px 10px 0px;
}

.reg-body-logo {
	display: inline-block;
	text-align: center;
	width: 50%;
	float: left;
	padding-top: 20px;
	padding-bottom: 20px;
}

.reg-body-logo img {
	height: 100px;
}

.social-media {
	text-align: center;
	width: 100%;
	padding: 5px;
	background-color: transparent;
}

.social-media a {
	text-decoration: none;
	background-color: transparent;
}

.fa-brands.fa-instagram.fa-3x {
	color: var(--text-color);
	padding: 5px;
	background-color: transparent;
}

.fa-brands.fa-instagram.fa-3x:hover {
	opacity: 60%;
}

.fa-brands.fa-square-pinterest.fa-3x {
	color: var(--text-color);
	padding: 5px;
	background-color: transparent;
}

.fa-brands.fa-square-pinterest.fa-3x:hover {
	opacity:60%;
}

.fa-brands.fa-square-facebook.fa-3x {
	color: var(--text-color);
	padding: 5px;
	background-color: transparent;
}

.fa-brands.fa-square-facebook.fa-3x:hover {
	opacity: 60%;
}

.fa-brands.fa-linkedin.fa-3x {
	color: var(--text-color);
	padding: 5px;
	background-color: transparent;
}

.fa-brands.fa-linkedin.fa-3x:hover {
	opacity: 60%;
}

/* Media screen size rules for mobile */

@media screen and (max-width: 768px){
	
	#open-sidebar-button, #close-sidebar-button{
		display: block;
	}
	nav{
		position: fixed;
		top: 0;
		right: -100%;
		height: 100vh;
		width: min(15em, 100%);
		z-index: 10;
		border-left: 1px solid var(--hover-color);
		transition: right 300ms ease-out;
	}
	nav.show{
		right: 0;
	}
	nav.show ~ #overlay{
		display: block;
	}
	nav ul{
		width: 100%;
		flex-direction: column;
	}
	nav a{
		width: 100%;
		padding-left: 2.5em;
	}
	nav a.active-link{
		border-bottom: none;
	}
	nav .home-li{
		margin-right: unset;
	}
	
	h1{
		font-size: 50px;
		margin-border-top: 20px;
	}
	
	h3 {
		font-size: 18px;
		color: var(--text-color);
		font-weight: 200;
		margin-bottom: 40px;
}
	
	body{
		margin-left: auto;
		margin-right: auto;
		max-width: 700px;
	}
	
	.photo-gallery {
		flex-direction: column;
	}
	
	.rotating {
		width: auto;
		
	}
	
	.project-image {
		width: 100%;
	}
	
	.btn-top {
		width: 40%;
	}
	
	.column {
		max-width: 100%;
	}

	.form{
		grid-template-columns: 1fr;
	}
	
	.contact-info:before {
		bottom: initial;
		top: -75px;
		right: 65px;
		transform: scale(0.95);
	}
	
	.contact-form:before {
		top: -13px;
		left: initial;
		right: 70px;
	}
		
	.text {
		margin: 1rem 0 1.5rem 0;
	}
	
	.social-media {
		padding: 1.5rem 0 0 0;
	}
	
}

@media(max-width:480px) {
	.container {
		padding: 1.5rem;
	}
	
	.contact-info:before {
		display: none;
	}
	
	form, .contact-info, .social-media p {
		/* font-size: 0.8rem; */
		padding: 1.7rem 1.6rem;
	}
	
	body {
		margin-left: auto;
		margin-right: auto;
		max-width: 450px;
	}
	
	h1{
		font-size: 35px;
		margin-border-top: 20px;
	}
	
	h2{
		font-size: 20px;
		margin-border-top: 20px;
	}
	
	.text, .information, .social-media p {
		font-size: 0.8rem;
	}
	
	.title {
		font-size: 1.15rem;
	}
	
	.social-icons a {
		width: 30px;
		height: 30px;
		line-height: 30px;
	}
	
	.input {
		padding: 0.45rem 1.2rem;
	}
	
	.btn {
		padding: 0.45 1.2rem;
	}
	
	.reg-body-logo img {
		height: 60px;
	}

}




