main {
	display: grid;
	min-block-size: 100vb;
	grid-template-columns: repeat(11, 1fr);
	grid-template-rows: repeat(9, auto);
	grid-row-gap: 2rem;

	h1:first-of-type {
		grid-column: 5 / 9;
		grid-row: 3;
		margin-block: 10%;
		margin-inline-start: 15%;
		background: hsl(260 20% 10% / 0.95);
		color: var(--primary-color, white);
		padding-inline: 1.5rem;
		padding-block: 0;
		border-radius: 1rem;
		align-content: center;

	}

	detail {
		font-size: larger;
		background: hsl(260 20% 10% / 0.95);
		grid-column: 9/12;
		grid-row: 2/7;
		color: var(--primary-color, white);
		border-radius: 1rem;
		padding-inline: 2rem;
		padding-block: 1.5rem;
		margin: 10%;

		h4 {
			font-size: 110%;
		}
	}

	picture {
		grid-column: 2 / 8;
		grid-row: 2 / 4;

		img {
			border-radius: 1rem;
			width: 100%; 
		}
	}

	toggle {
		font-size: x-large;
		color: var(--primary-universal-color);
		background: hsl(260 20% 10% / 0.95);
		grid-column: 1/4;
		grid-row: 3/5;
		margin-left: 125px;
		margin-top: 200px;
		margin-right: 5%;
		margin-bottom: 200px;
		border-radius: 4em;
		align-content: center;
		padding-left: 20px;
	  
		label {
		  position: relative;
		  display: inline-block;
		  margin-left: 10px;
		  width: 60px;
		  height: 34px;
		}
	  
		label input {
		  opacity: 0;
		}
	  
		label span:before { /* Circle (moon) */
		  position: absolute;
		  content: "";
		  height: 26px;
		  width: 26px;
		  left: 4px;
		  bottom: 4px;
		  background-color: white;
		  transition: .4s;
		  border-radius: 50%;
		  box-shadow: inset 8px -6px black; /* Crescent moon effect */
		}
	  
		label span { 
		  position: absolute;
		  cursor: pointer;
		  top: 0;
		  left: 0;
		  right: 0;
		  bottom: 0;
		  background-color: white;
		  transition: .4s;
		  border-radius: 34px;
		}
	  
		input:checked + span {
		  background-color: var(--dark-color);
		}
	  
		input:focus + span {
		  box-shadow: 0 0 1px #2196F3;
		}
	  
		input:checked + span:before {
		  transform: translateX(26px);
		  background-color: white;
		  box-shadow: none;
		}
	}
}

h1 span {
	display: inline-block;
	font-size: 1.44vw;
	overflow: hidden; 
	border-right: .05em solid white; 
	white-space: nowrap; 
	width: auto;
	height: auto;
	letter-spacing: .1em;
	transform: scaleY(1.5);
	animation: 
		typing 3.5s steps(40, end) forwards,
		blink 1s 4.5s step-end infinite;	
}

summary {
	font-size: 2vb;
	color: var(--primary-color, white);
	grid-column: 4 / 9;
	grid-row: 4 / 6;
	align-self: start;
	margin: 0;
	padding-inline: 2rem;
	padding-block: 2rem;
	background: hsl(260 20% 10% / 0.95);
	border-radius: 1rem;
}

.icons {
	grid-column: 1 / 3;
	grid-row: 2 / 3;
	justify-self: center;
	align-self: end;
}

.icons_list {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.github {
	justify-self: center;
	inline-size: 4rem;
	block-size: 4rem;
	border-radius: 0.6rem;
	display: block;
	opacity: 0;
	transform: translateX(-50px);
    animation: fadeInRight 1s ease-out forwards;
	animation-delay: 4.5s;
}

.linkedin {
	justify-self: center;
	inline-size: 5rem;
	block-size: 5rem;
	border-radius: 0.6rem;
	display: block;
	opacity: 0;
	transform: translateX(-50px);
   	animation: fadeInRight 1s ease-out forwards;
	animation-delay: 5s;
}

.gmail {
	justify-self: center;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 0.6rem;
	
	display: block;
	opacity: 0;
	transform: translateX(-50px);
    animation: fadeInRight 1s ease-out forwards;
	animation-delay: 5.5s;
}

a:hover img {
	filter: opacity(75%); 
	transform: translate(50px, 100px);
}

.grid-container > a { 
	color: var(--primary-color, white);
}

@media screen and (max-width: 768px) {
	.grid {
		display: grid;
		grid-template-columns: repeat(11, 1fr);
		grid-template-rows: repeat(9, auto);
		grid-row-gap: 2rem;
	}

	.image {
		inline-size: unset;
		block-size: unset;
		object-fit: cover;
		object-position: top;
		grid-column: 2 / 11; 
		grid-row: 2 / 4;
		place-self: stretch;
		border-radius: 1rem;
		margin-bottom: 50%;
	}

	detail {
		visibility: hidden;
	}

	.intro {
		grid-column: 2 / 11;
	}

	hgroup {
		display: none;
	}
}