@import url('https://fonts.googleapis.com/css?family=Poiret+One|Source+Sans+Pro');

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

html,
body {
	height: 100%;
}

body {
	font-size: 110%;
	color: #ecf0f1;
	font-family: 'Source Sans Pro', sans-serif;
	background: #1a1a2e;
	width: 100%;
	position: relative;
	overflow-x: hidden;
}

.main {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 50px 20px 20px;
}

.contact {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-bottom: 40px;
}

.title {
	font-family: 'Poiret One', cursive;
	font-size: 2rem;
	margin-bottom: .5rem;
	width: 100%;
	text-align: center;
}

.sub-title {
	border-top: .1rem solid #fff;
	padding: 1rem 4rem;
	text-align: center;
	font-size: 1.2rem;
}

.contact img {
	display: block;
	margin: 0 auto 20px;
	max-width: 200px;
	height: auto;
}

.shake-image:hover {
	animation: shake 1s ease-in-out infinite;
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px) rotate(-5deg);
	}

	75% {
		transform: translateX(5px) rotate(5deg);
	}

	100% {
		transform: translateX(0);
	}
}

.wrapper {
	margin-top: 20px;
}

.wrapper .icon {
	position: relative;
	background-color: #ffffff;
	border-radius: 50%;
	margin: 10px;
	width: 50px;
	height: 50px;
	line-height: 50px;
	font-size: 22px;
	display: inline-block;
	align-items: center;
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	color: #333;
	text-decoration: none;
	text-align: center;
}

.wrapper .tooltip {
	position: absolute;
	top: 0;
	line-height: 1.5;
	font-size: 14px;
	background-color: #ffffff;
	color: #ffffff;
	padding: 5px 8px;
	border-radius: 5px;
	box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
	position: absolute;
	content: "";
	height: 8px;
	width: 8px;
	background-color: #ffffff;
	bottom: -3px;
	left: 50%;
	transform: translate(-50%) rotate(45deg);
	transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
	top: -45px;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
	text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
	background-color: #3b5999;
	color: #ffffff;
}

.wrapper .microsoft:hover,
.wrapper .microsoft:hover .tooltip,
.wrapper .microsoft:hover .tooltip::before {
	background-color: #00A2ED;
	color: #ffffff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
	background-color: #333333;
	color: #ffffff;
}

/* ====================== ZOOM MODAL ====================== */
.zoom-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
	overflow: auto;
}

.zoom-overlay.active {
	display: flex;
	opacity: 1;
}

.zoom-overlay img {
	max-width: 95%;
	max-height: 95vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
	transform: scale(0.9);
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.zoom-overlay.active img {
	transform: scale(1);
}

/* Close button (top-right) */
.zoom-close {
	position: absolute;
	top: 20px;
	right: 30px;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: white;
	font-size: 32px;
	font-weight: bold;
	line-height: 50px;
	text-align: center;
	cursor: pointer;
	z-index: 10000;
	transition: all 0.2s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.zoom-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.1);
}

/* Mobile close button adjustment */
@media (max-width: 768px) {
	.zoom-close {
		top: 15px;
		right: 15px;
		width: 44px;
		height: 44px;
		line-height: 44px;
		font-size: 28px;
	}
}

/* Optional: subtle scale effect on hover (before clicking) */
.diagram img:hover {
	transform: scale(1.02);
}

/* Diagram Section */
.diagram-container {
	width: 100%;
	max-width: 1000px;
	margin: 40px auto;
	padding: 30px;
	text-align: center;

}


.diagram {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	/* background: rgba(255, 255, 255, 0.05); */
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	padding: 40px 30px;
	/* box-sizing: border-box;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); */
	text-align: center;
}

.diagram img,
.diagram-img {
	max-width: 100%;
	width: 100%;
	height: auto;
	display: block;
	margin: 20px auto;
	border: none !important;
	/* removes any border */
	outline: none !important;
	border-radius: 8px;
	/* slight inner rounding so it doesn’t touch the outer border 
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5); */
	cursor: zoom-in;
	transition: transform 0.3s ease;
}

/* Footer */
.footer {
	text-align: center;
	width: 100%;
	padding: 20px 0;
	margin-top: auto;
}

.azure-logo {
	margin-top: 10px;
}

.azure-logo img {
	width: 80px;
	height: auto;
}

/* Media Queries */
@media all and (max-width:575px) {
	.wrapper .icon {
		margin: 0px 6px;
		width: 45px;
		height: 45px;
		line-height: 45px;
	}

	.main {
		padding: 25px 20px;
	}

	.title {
		font-size: 26px;
	}

	.diagram-placeholder {
		width: 100%;
		max-width: 350px;
		height: 300px;
	}
}

@media all and (max-width:365px) {
	.contact img {
		max-width: 120px;
	}

	.title {
		font-size: 23px;
	}

	.sub-title {
		font-size: 1rem;
	}

	.wrapper .icon {
		width: 40px;
		height: 40px;
		line-height: 40px;
		font-size: 20px;
	}

	.footer span {
		font-size: 18px;
	}

	.azure-logo img {
		width: 55px;
	}
}