@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
:root {
	--yellow: #f9ca24;
}
* {
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-family: "Montserrat", sans-serif;
	-webkit-tap-highlight-color: rgb(255, 255, 255, 0) !important;
	-webkit-focus-ring-color: rgb(255, 255, 255, 0) !important;
	outline: none !important;
}

a:link,
a:visited {
	color: inherit;
	text-decoration: none;
}

::selection {
	color: #28292d;
	background-color: #f9cb24a1;
}
span::selection {
	color: #ffffff;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	color: White;
}

p {
	font-size: 20px;
}

h1 {
	font-size: 64px;
}

h2 {
	font-size: 32px;
}

h3 {
	font-size: 24px;
}

h4 {
	font-size: 18px;
}

body {
	background-color: #28292d;
	width: 100%;
	scroll-behavior: smooth;
}

.float-r {
	float: right;
}
.float-l {
	float: left;
}

.hidden {
	visibility: hidden;
}
/*-------------------------|Header|-------------------------*/
header {
	background: #181a1c;
	height: 375px;
	padding: 5px;
	border-radius: 0 0 15px 15px;
	box-shadow: 0 10px 30px rgb(0, 0, 0, 0.4);
	overflow: hidden;
}

.logoDiv {
	color: White;
	float: left;
	padding: 5px;
}
#Logo {
	height: 20px;
	display: block;
}

.headContent {
	display: inline-block;
	width: 100%;
}

.headline {
	float: left;
	width: 300px;
	margin: 50px;
}

#header-img {
	width: 250px;
	height: 250px;
	padding: 25px;
	margin-left: 25px;
}

/* Style the navigation menu */
.topnav {
	overflow: hidden;
	position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #navLinks {
	display: none;
	padding: 20px 0 30px 0;
}

/* Language section */
#lang {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}
.topnav button {
	color: #181a1c;
	background-color: #fff;
	font-size: 17px;
	font-weight: 800;
	padding: 0px 7px;
	border: none;
	border-radius: 1px;
	padding: 0px 5px;
	margin: -30px 5px 10px 0;
	text-decoration: none;
	display: inline-block;
    cursor: pointer;
}
.topnav button:hover {
	color: #f9ca24;
	background-color: #28292d;
}
.topnav button.active {
	color: #fff;
	background-color: #f9ca24;
}
.topnav button.active:hover {
	background-color: #e79c0d;
}

/* Links Section */
#menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}
.topnav a {
	color: white;
	padding: 5px 5px;
	text-decoration: none;
	display: block;
	align-self: center;
}
.link {
	font-weight: 700;
	text-align: center;
	position: relative;
	height: 40px;
	line-height: 40px;
	margin-top: 10px;
	overflow: hidden;
	cursor: pointer;
	width: 90%;
}
.link:after {
	content: "";
	position: absolute;
	width: 80%;
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
	bottom: 30%;
	left: -100%;
	transition-delay: all 0.5s;
	transition: all 1s;
}
.link:hover:after,
.link.hover:after {
	left: 100%;
}
.link .text {
	text-shadow: 0px -40px 0px rgba(255, 255, 255, 1);
	transition: all 0.75s;
	transform: translateY(100%) translateZ(0);
	transition-delay: all 0.25s;
}
.link:hover .text,
.link.hover .text {
	text-shadow: 0px -40px 0px rgba(255, 255, 255, 0);
	transform: translateY(0%) translateZ(0) scale(1.1);
	font-weight: 600;
}

/* Style the hamburger menu */
.topnav .icon {
	padding: 0;
	padding-right: 15px;
	font-size: 30px;
	color: White;
	display: block;
	position: absolute;
	right: 0;
	top: -5px;
}

/*-------------------------|BODY|-------------------------*/
.mainContainer {
	max-width: 1030px;
	margin: 0 auto;
}

#btn {
	padding: 10px 15px;
	background: #333;
	color: White;
	margin: 10px auto;
	font-size: 15px;
	font-weight: 600;
	border-radius: 50px;
	border: solid 1px White;
	display: inline-block;
	text-decoration: none;
}
#btn i {
	padding: 0 5px;
	font-size: 18px;
	color: White;
}
#btn:hover {
	background: var(--yellow);
}

#more-designs-btn {
	padding: 10px 15px;
	background: #333;
	color: White;
	margin: 10px auto;
	font-size: 15px;
	font-weight: 600;
	border-radius: 50px;
	border: solid 1px White;
	display: inline-block;
	text-decoration: none;
}

#more-designs-btn:hover {
	background: var(--yellow);
}

.heading {
	text-align: center;
	padding: 10px;
	margin: 25px;
	border-bottom: 1px solid #fff;
	color: #fff;
}

.heading #p1 {
	color: #fff;
	font-size: 40px;
}

.heading #p2 {
	color: var(--yellow);
	font-size: 40px;
}

.info {
	width: 90%;
	max-width: 640px;
	padding: 5px;
	text-align: center;
	margin: 10px auto 0px;
}

.about .row .counter {
	display: flex;
	justify-content: center;
	align-items: center;
}

.about .row .counter .box {
	width: 200px;
	background: #181a1c;
	text-align: center;
	padding: 10px;
	margin: 10px 5px;
	display: inline-block;
}

.about .row .counter .box span {
	font-size: 40px;
	color: var(--yellow);
}

.about .row .counter .box h3 {
	font-size: 20px;
	color: #fff;
}
/*--------------------------*/
.skills {
	margin: 20px auto;
}
.skill {
	width: 320px;
	display: inline-block;
}

.progress {
	margin: 10px;
	display: inline-block;
}
.skill h3 {
	border-bottom: 2px solid var(--yellow);
	width: 260px;
	padding: 10px;
	margin-bottom: 10px;
}
.outer {
	height: 80px;
	width: 80px;
	padding: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	box-shadow: 4px 4px 6px -4px rgba(0, 0, 0, 0.15),
		-4px -4px 6px -4px rgba(250, 250, 250, 0.7);
}
.inner {
	height: 80px;
	width: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	box-shadow: inset 2px 2px 6px -2px rgba(0, 0, 0, 0.2),
		inset -2px -2px 6px -2px rgba(255, 255, 255, 0.7);
}
#number {
	font-weight: 600;
	font-size: 20px;
	color: White;
}
svg {
	width: 160px;
	height: 160px;
	position: absolute;
}
svg circle {
	fill: none;
	stroke: var(--yellow);
	stroke-width: 20px;
	stroke-dasharray: 310;
	stroke-dashoffset: 310;
	animation: linear forwards;
	animation-delay: 0.3s;
	animation-duration: 1.4s;
}

#ar {
	animation-name: anim-ar;
}
@keyframes anim-ar {
	100% {
		stroke-dashoffset: 30;
	}
}

#en {
	animation-name: anim-en;
}
@keyframes anim-en {
	100% {
		stroke-dashoffset: 50;
	}
}

#ca {
	animation-name: anim-ca;
}
@keyframes anim-ca {
	100% {
		stroke-dashoffset: 50;
	}
}

#es {
	animation-name: anim-es;
}
@keyframes anim-es {
	100% {
		stroke-dashoffset: 60;
	}
}
/*==========*/
#ai {
	animation-name: anim-ai;
}
@keyframes anim-ai {
	100% {
		stroke-dashoffset: 30;
	}
}

#ps {
	animation-name: anim-ps;
}
@keyframes anim-ps {
	100% {
		stroke-dashoffset: 50;
	}
}

#fusion {
	animation-name: anim-fusion;
}
@keyframes anim-fusion {
	100% {
		stroke-dashoffset: 30;
	}
}

#vs {
	animation-name: anim-vs;
}
@keyframes anim-vs {
	100% {
		stroke-dashoffset: 50;
	}
}
/*==========*/
#c {
	animation-name: anim-c;
}
@keyframes anim-c {
	100% {
		stroke-dashoffset: 70;
	}
}

#php {
	animation-name: anim-php;
}
@keyframes anim-php {
	100% {
		stroke-dashoffset: 90;
	}
}

#html {
	animation-name: anim-html;
}
@keyframes anim-html {
	100% {
		stroke-dashoffset: 30;
	}
}

#react {
	animation-name: anim-react;
}
@keyframes anim-react {
	100% {
		stroke-dashoffset: 70;
	}
}

/*--------------------------*/
.education .box-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	padding: 10px auto;
	margin-left: 25px;
}

.education .box-container .box {
	width: 250px;
	margin: 40px 10px;
	padding-left: 40px;
	border-left: 2px solid #fff;
	position: relative;
}

.education .box-container .box h3 {
	font-size: 20px;
	color: #fff;
	padding-top: 15px;
}

.education .box-container .box p {
	font-size: 14px;
	color: #eee;
	padding: 10px 0;
}

.education .box-container .box i {
	position: absolute;
	top: -15px;
	left: -25px;
	height: 50px;
	width: 50px;
	border-radius: 50%;
	line-height: 50px;
	text-align: center;
	font-size: 20px;
	color: #fff;
	background: var(--yellow);
}
/*--------------------------*/

/* Portfolio Filter Buttons */
.portfolio-filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0 40px 0;
}

.filter-btn {
	padding: 12px 24px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid var(--yellow);
	border-radius: 25px;
	color: var(--yellow);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--yellow);
	color: #222;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(238, 174, 68, 0.4);
}

/* Projects Container */
.projects-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Project Cards */
.project-card {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	overflow: hidden;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	opacity: 1;
	transform: scale(1);
}

.project-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	border-color: var(--yellow);
}

.project-card.hidden {
	display: none;
}

.card-image {
	height: 180px;
	overflow: hidden;
	position: relative;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* Project Overlay for 3D projects */
.project-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
	opacity: 1;
}

.view-project-btn {
	background: var(--yellow);
	color: #111;
	padding: 10px 20px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.view-project-btn:hover {
	background: #fff;
	transform: scale(1.05);
}

/* Project Stats */
.project-stats {
	margin-top: 8px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.project-stats .stat {
	background: rgba(255, 255, 255, 0.1);
	color: #ddd;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 500;
}

.card-content {
	padding: 15px;
}

.card-content h3 {
	color: var(--yellow);
	font-size: 1.2rem;
	margin-bottom: 8px;
	font-weight: 600;
}

.card-content p {
	color: #ddd;
	font-size: 0.85rem;
	line-height: 1.5;
	margin-bottom: 12px;
}

.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	background: rgba(238, 174, 68, 0.2);
	color: var(--yellow);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(238, 174, 68, 0.3);
}

/* Graphic Design Specific Overlay */
.project-card[data-category="graphic"] .graphic-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 20px;
}

.project-card[data-category="graphic"] .graphic-overlay .card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.project-card[data-category="graphic"]:hover .graphic-overlay {
	opacity: 1;
}

/* Make graphic design cards image-only by default */
.project-card[data-category="graphic"] .card-content {
	display: none;
}

.project-card[data-category="graphic"] .card-image {
	height: 220px;
	border-radius: 15px;
	overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
	.projects-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 0 15px;
	}
	
	.filter-btn {
		padding: 10px 20px;
		font-size: 14px;
	}
	
	.portfolio-filters {
		margin: 15px 0 30px 0;
	}
}

/* Legacy portfolio styles (keeping for backward compatibility) */
.portfolio .box-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	padding-top: 20px;
}

.portfolio .box-container .box {
	background-color: transparent;
	height: 200px;
	width: 300px;
	border-radius: 10px;
	margin: 10px;
	box-shadow: 0 10px 30px rgb(0, 0, 0, 0.4);
	overflow: hidden;
}

.portfolio .box-container .box img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.portfolio .box-container .box img:hover {
	transform: scale(1.2);
	transition-duration: 0.5s;
}

/*--------------------------*/
.contact .row .content {
	padding: 30px 40px 0 40px;
}

.contact .row form {
	padding: 20px;
	margin: 20px;
	margin-bottom: 40px;
}

.contact .row form .box {
	padding: 15px;
	margin: 10px 0;
	background: #3333;
	color: #fff;
	text-transform: none;
	font-size: 17px;
	width: 95%;
}

.contact .row form .box::placeholder {
	text-transform: capitalize;
}

.contact .row form .message {
	height: 150px;
	resize: none;
}

.contact .row .content .title {
	text-transform: uppercase;
	color: #fff;
	font-size: 30px;
	padding-bottom: 10px;
}

.contact .row .content .info h3 {
	display: flex;
	align-items: center;
	font-size: 20px;
	color: #eee;
	padding: 10px 0;
	font-weight: normal;
}

.contact .row .content .info h3 i {
	padding-right: 10px;
	color: var(--yellow);
}

/*-------------------------|footer|-------------------------*/

footer {
	background: #181a1c;
	border-radius: 15px 15px 0 0;
	box-shadow: 0 -10px 30px rgb(0, 0, 0, 0.4);
	overflow: hidden;
}

footer #firstPart {
	margin: 40px 0px;
	width: 550px;
	float: left;
}

footer h2 {
	font-size: 42px;
}

footer h4 {
	margin-top: 3px;
	font-size: 20px;
}

footer .social {
	margin-top: 15px;
	margin-left: -5px;
}

footer .social img {
	width: 40px;
	margin: 5px;
}

footer .social img:hover {
	filter: drop-shadow(0px 0px 5px #f9ca24);
	transition: all 0.2s;
	transform: rotate(360deg);
}

footer .logo {
	width: 300px;
	float: right;
	margin: 3.5vw 2vw 0 0;
}

@media screen and (max-width: 360px) {
	* {
		margin: 0;
		padding: 0;
		font-size: 12px;
	}

	p {
		font-size: 14px;
	}

	h1 {
		font-size: 26px;
	}

	h2 {
		font-size: 22px;
	}

	h3 {
		font-size: 18px;
	}
	.float-n {
		float: none;
	}

	header {
		overflow: hidden;
	}
	.headContent {
		display: block;
		text-align: center;
		width: 95vw;
	}

	.headline {
		float: none;
		width: 100%;
		margin: 0;
		margin-top: 30px;
	}

	#header-img {
		width: 80%;
		padding: 5px 10%;
		margin: 0 auto;
	}

	/*-------------------------|BODY|-------------------------*/
	.mainContainer {
		max-width: 360px;
		margin: 0 auto;
	}

	.about .row .counter {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.about .row .counter .box {
		width: 200px;
		background: #181a1c;
		text-align: center;
		padding: 10px;
		margin: 10px 5px;
		display: inline-block;
	}

	.about .row .counter .box span {
		font-size: 30px;
		color: var(--yellow);
	}

	.about .row .counter .box h3 {
		font-size: 15px;
		color: #fff;
	}
	/*--------------------------*/
	footer #text {
		display: none;
	}

	footer #firstPart {
		margin: 0px;
		width: 100vw;
		float: none;
	}

	footer .social {
		margin: 30px 0px 10px -5px;
		width: 100vw;
	}

	footer .logo {
		display: none;
	}
}

/*========================== Custom Tooltips ==========================*/

.tooltip {
	position: relative;
	cursor: pointer;
}

.tooltip::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(44, 45, 49, 0.95);
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(249, 202, 36, 0.3);
	pointer-events: none;
	margin-bottom: 4px;
}

.tooltip::after {
	content: "";
	position: absolute;
	bottom: 96%;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border: 4px solid transparent;
	border-top-color: rgba(249, 202, 36, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
	z-index: 1000;
	pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
	opacity: 1;
	visibility: visible;
	transition-delay: 0.2s;
}

/* Language specific tooltip colors */
.tooltip.lang-ar::before {
	border-color: rgba(40, 167, 69, 0.4);
}

.tooltip.lang-en::before {
	border-color: rgba(0, 123, 255, 0.4);
}

.tooltip.lang-ca::before {
	border-color: rgba(253, 126, 20, 0.4);
}

.tooltip.lang-es::before {
	border-color: rgba(255, 193, 7, 0.4);
}

/* App specific tooltip colors */
.tooltip.app-ai::before {
	border-color: rgba(255, 107, 53, 0.4);
}

.tooltip.app-ps::before {
	border-color: rgba(49, 168, 255, 0.4);
}

.tooltip.app-fusion::before {
	border-color: rgba(255, 108, 17, 0.4);
}

.tooltip.app-vs::before {
	border-color: rgba(0, 122, 204, 0.4);
}

/* Programming language specific tooltip colors */
.tooltip.prog-c::before {
	border-color: rgba(85, 85, 85, 0.4);
}

.tooltip.prog-php::before {
	border-color: rgba(120, 152, 188, 0.4);
}

.tooltip.prog-html::before {
	border-color: rgba(227, 79, 38, 0.4);
}

.tooltip.prog-react::before {
	border-color: rgba(97, 219, 251, 0.4);
}

/*========================== End Custom Tooltips ==========================*/
