/*==============
    1. DEFAULT
================*/

* {
	box-sizing: border-box;
}

html {
	width: 100%;
	height: 100%;
}

body {
	width: 100%;
	height: 100%;
	line-height: 24px;
	font-size: 13px;
	font-family: 'Fira Sans', sans-serif;
	font-weight: bold;
	letter-spacing: 1px;
	background-color: #f1f1f1;
}

.no-padding {
	padding: 0;
}

a,
a:focus,
a:active,
a:link,
img {
	outline: none;
}

a {
	cursor: pointer;
	text-decoration: none;
	color: #ffffff;
	transition: all 0.25s ease 0s;
	-moz-transition: all 0.25s ease 0s;
	-webkit-transition: all 0.25s ease 0s;
	-o-transition: all 0.25s ease 0s;
}

a:hover {
	color: #46e2d5;
	text-decoration: none;
	transition: all 0.25s ease 0s;
	-moz-transition: all 0.25s ease 0s;
	-webkit-transition: all 0.25s ease 0s;
	-o-transition: all 0.25s ease 0s;
}

a:focus {
	outline: none;
	outline-offset: 0;
	color: #ffffff;
}

a:link,
a:visited {
	text-decoration: none;
}

p {
	line-height: 26px;
	font-size: 14px;
	font-weight: 400;
	color: #666;
}

img {
	height: auto;
	max-width: 100%;
	border: none;
	outline: none;
	transition: all 0.2s ease 0s;
	-moz-transition: all 0.2s ease 0s;
	-webkit-transition: all 0.2s ease 0s;
	-o-transition: all 0.2s ease 0s;
}

ul,
li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 10px;
	color: #ffffff;
	text-transform: capitalize;
}

.mb-120 {
	margin-bottom: 120px;
}

.section-padding {
	padding: 90px 0;
}

.section-header {
	margin-bottom: 100px;
	text-align: center;
	font-size: 40px;
	font-family: 'Playfair Display', serif;
	color: #2c2e2e;
}

.section-header h3 {
	font-size: 27px;
	line-height: 37px;
	margin-bottom: 20px;
	padding-top: 10px;
	font-weight: 600;
	color: #333333;
}

/*=================
    2. PRELOADER
===================*/

.loader_bg {
	position: fixed;
	z-index: 9999999;
	background: #2c2e2e;
	width: 100%;
	height: 100%;
}

.loader {
	border: 0 solid transparent;
	border-radius: 50%;
	width: 150px;
	height: 150px;
	position: absolute;
	top: calc(50vh - 75px);
	left: calc(50vw - 75px);
}

.loader:before,
.loader:after {
	content: '';
	border: 1em solid #46e2d5;
	border-radius: 50%;
	width: inherit;
	height: inherit;
	position: absolute;
	top: 0;
	left: 0;
	animation: loader 2s linear infinite;
	opacity: 0;
}

.loader:before {
	animation-delay: 0.5s;
}

@keyframes loader {
	0% {
		transform: scale(0);
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/*=================
    3. NAVBAR
===================*/
nav {
	width: 100%;
	display: flex;
}

.logo {
	font-family: 'Alegreya', serif;
	font-weight: 700;
	font-size: 20px !important;
	text-transform: capitalize;
}

.navbar-custom {
	margin-bottom: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	background: #fff;
	text-transform: uppercase;
}

.navbar-custom .navbar-toggle {
	padding: 4px 6px;
	font-size: 16px;
	color: #fff;
}

.navbar-custom .navbar-toggle:focus,
.navbar-custom .navbar-toggle:active {
	outline: 0;
}

.navbar-custom a {
	font-size: 16px;
}

.navbar-custom .nav li a {
	-webkit-transition: background 0.3s ease-in-out;
	-moz-transition: background 0.3s ease-in-out;
	transition: background 0.3s ease-in-out;
}

.navbar-custom .nav li a:hover {
	outline: 0;
	color: #46e2d5;
	background-color: transparent;
}

.navbar-custom .nav li a:focus,
.navbar-custom .nav li a:active {
	outline: 0;
	background-color: transparent;
}

.navbar-custom .nav li.active {
	outline: 0;
}

nav.navbar-custom {
	width: 100%;
	display: block;
}

.resume-btn {
	border-bottom-width: 1px;
	border-color: rgba(255, 255, 255, 0.08);
	border-left-width: 1px;
	border-right-width: 1px;
	border-style: dashed;
	border-top-width: 1px;
	filter: brightness(1);
	border-radius: 39px;
	will-change: transform;
	transform: none;
	transform-origin: 50% 50% 0px;
	opacity: 1;
}

@media (min-width: 768px) {
	.navbar-custom {
		padding: 20px 0;
		border-bottom: 0;
		letter-spacing: 1px;
		background: 0 0;
		-webkit-transition:
			background 0.5s ease-in-out,
			padding 0.5s ease-in-out;
		-moz-transition:
			background 0.5s ease-in-out,
			padding 0.5s ease-in-out;
		transition:
			background 0.5s ease-in-out,
			padding 0.5s ease-in-out;
	}
	.navbar-custom.top-nav-collapse {
		background: #2c2e2e;
		/* backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px); */
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
	.navbar-custom.top-nav-collapse .nav li a {
		color: #fff;
	}
	.navbar-custom.top-nav-collapse .nav li.active a {
		background-color: transparent;
		color: #46e2d5 !important;
	}
	.navbar-custom.top-nav-collapse {
		color: #fff;
	}

	/* 1. Turn the container into a flex container holding the logo and the collapse wrapper */
	.navbar-flex-wrapper {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		position: relative; /* Tells the center links what to align to */
	}

	/* 2. Make the inner wrapper stretch across the remaining space */
	.navbar-collapse.navbar-main-collapse {
		display: flex !important;
		align-items: center;
		justify-content: flex-end; /* Automatically keeps the resume button on the far right */
		flex-grow: 1;
		padding-right: 0;
		padding-left: 0;
		box-shadow: none;
		border-top: 0;
	}

	/* 3. Force the Home/Projects links into the absolute visual center */
	/* 3. Absolute center the links relative to the entire screen/container width */
	.navbar-custom .navbar-nav {
		position: absolute !important;
		left: 50% !important;
		top: 50% !important;
		transform: translate(-50%, -50%) !important; /* Locks it into the dead visual center */
		display: flex !important;
		flex-direction: row;
		margin: 0 !important;
		float: none !important;
		z-index: 10;
	}

	.navbar-custom .navbar-nav > li {
		float: none !important;
	}

	/* 4. Keep the resume wrapper perfectly right-aligned */
	.navbar-right-wrapper {
		display: flex;
		align-items: center;
		margin-left: auto;
	}
}

/* Simple fallback fallback padding for the Resume Button */
.resume-btn {
	color: #ffffff;
	padding: 8px 16px;
	border: 1px solid #46e2d5;
	border-radius: 4px;
	transition: all 0.25s ease;
}

.resume-btn:hover {
	background-color: #46e2d5;
	color: #2c2e2e;
}

/*=================
    4. HOME
===================*/

.banner-area {
	height: 100%;
	padding: 0;
	overflow: hidden;
	background: #2c2e2e;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

/* Ensure the banner area is the absolute anchoring point */
#home.banner-area {
	position: relative;
	overflow: hidden; /* Clips wave animation so lines don't leak into the next section */
}

/* Ensure text contents float on top of the moving lines */
#home .containter {
	position: relative;
	z-index: 3;
}

/* Base style setup for your dark overlay */
#home .bg-overlay {
	z-index: 1;
}

.banner-wave-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 110vw;
	height: 120%;
	transform: translate(-50%, -50%);
	z-index: 2;
	pointer-events: none;

	/* DRAMATIC BOTTOM-ONLY FADE */
	-webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 95%);
	mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 95%);
}

.banner-wave-bg svg {
	width: 100%;
	height: 100%;
	display: block;
}

.banner-wave-bg path {
	fill: none;
	stroke: #ffffff;
	stroke-width: 0.4px;
	stroke-miterlimit: 10;
	opacity: 0.22;
}
.welcome-text {
	text-align: center;
	color: #fff;
}

.welcome-text h1 {
	font-size: clamp(40px, 8vw, 80px);
	line-height: 0.87;
	overflow-wrap: break-word;
	margin: 10px 0px;
	text-transform: capitalize;
	font-weight: 700;
	display: block;
	padding: 0 0 8px 0;

	/* --- Subtle neon text glow --- */
	filter: drop-shadow(0px 2px 8px rgba(176, 38, 255, 0.4));
	font-family: 'Playfair Display', serif;
}
.welcome-text p {
	width: 528px;
	margin: auto;
	color: #ffffff;
	font-family: 'Fira Sans', serif;
	font-size: 20px;
}

.welcome-text .name-area {
	letter-spacing: 5px;
	margin-bottom: 20px;
	font-size: 26px;
	text-transform: uppercase;
	line-height: 36px;
	font-weight: 400;
}

.role-text {
	font-size: clamp(18px, 3.5vw, 25px) !important; /* Significantly smaller range */
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0 !important;
}

.desc {
	line-height: 1.6;
	font-size: 16px;
}

/*======================
    7. SERVICES
========================*/

#projects .projects-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 30px; /* Space between columns */
	row-gap: 30px; /* Space between rows */
}

/* DEFAULT: Desktop Layout (3 Columns) */
#projects .projects-row > div {
	display: flex;
	/* Calculates exactly 1/3 width minus the gaps */
	flex: 0 0 calc((100% - (2 * 30px)) / 3);
	box-sizing: border-box;
}

.single-service {
	margin-bottom: 30px;
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.1);

	box-shadow:
		9px 9px 16px rgba(163, 177, 198, 0.6),
		-9px -9px 16px rgba(255, 255, 255, 0.8);
	border-radius: 8px;

	display: flex;
	flex-direction: column;
}

.single-service img {
	width: 100%;
	object-fit: cover;
	display: block;
}

.case-study-mockup-image {
	margin-top: -32px;
	padding-left: 30px;
	padding-right: 30px;
	mix-blend-mode: multiply;
	filter: contrast(1.1) brightness(1.05); /* Forces off-whites to go pure white */
}

.case-tags {
	padding-left: 30px;
	padding-right: 30px;
	margin-bottom: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent white pill layout */
	color: #ffffff;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	padding: 4px 12px;
	border-radius: 20px; /* Makes them pill-shaped */
	display: inline-block;
}

.case-description {
	background-color: #2c2e2e;
	padding-bottom: 20px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;

	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.case-description p {
	padding-left: 30px;
	padding-right: 30px;
	padding-bottom: 10px;
	line-height: 1.5;
	color: #ffffff;
	margin-bottom: 0;
}

.link-container {
	display: inline-flex;
	align-items: center;

	margin-top: auto;
	padding-top: 15px;
}

.link-container svg {
	margin-left: 8px;
}

.case-study-link {
	padding-left: 30px;
	display: inline-flex;
	align-items: center;
}

.single-service h3 {
	margin: 20px 0;
	font-size: 18px;
	font-weight: 600;
	padding: 20px 30px 0px 30px;
}

/*======================
    13. FOOTER
========================*/

footer {
	background: #232323;
	padding: 30px 0;
}
footer p {
	color: #ffffff;
}

footer p a {
	color: #46e2d5;
}

/* Container rules to enforce alignment and stack sequence */
footer .footer-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* 	padding: 50px 20px; */
}

/* Horizontal alignment for the links container */
.footer-socials {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px; /* Uniform horizontal space between icons */
	margin-bottom: 20px; /* Space between the icon row and text below */
}

/* Interactive properties for your icon links */
.social-icon {
	color: #ffffff;
	display: inline-block;
	opacity: 0.7;
	transition:
		transform 0.25s ease,
		opacity 0.25s ease;
}

/* Micro-interaction: lifts up slightly and becomes fully bright on hover */
.social-icon:hover {
	transform: translateY(-3px);
	opacity: 1;
}

/* SVG Dimensional Constraints */
.social-icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor; /* Forces SVG path to match the current text color (.social-icon) */
}

/*======================
    5. RESPONSIVE
========================*/

/* Medium Layout: 1280px. */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
}

/* Tablet Layout: 768px. */
@media only screen and (min-width: 768px) and (max-width: 991px) {
	.nav > li > a {
		padding: 10px;
	}

	.profile img {
		width: 100%;
	}
	.about-left {
		text-align: center;
	}
	#projects .projects-row > div {
		flex: 0 0 calc((100% - 30px) / 2);
	}
	.single-service {
		width: 74%;
		margin-left: auto;
		margin-right: auto;
	}

	.welcome-text p {
		width: 420px;
	}

	.link-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.case-study-link {
		padding-left: 0;
	}
}

/* Mobile Layout: 320px. */
@media only screen and (max-width: 767px) {
	.navbar-custom {
		background: transparent;
		border-bottom: none;
	}

	.navbar-custom .nav li.active {
		outline: 0;
		color: #fff;
	}
	.navbar-toggle {
		color: #ffffff;
		font-size: 25px;
	}
	.navbar-nav > li > a {
		color: #fff;
	}
	.navbar-custom.navbar-fixed-top.top-nav-collapse {
		background: #333333;
	}
	.top-nav-collapse .navbar-toggle {
		color: #fff;
	}

	.navbar-nav li {
		margin: 5px 50px;
		float: left;
		display: inherit;
		width: 100%;
		text-align: center;
	}
	.navbar-nav > li > a {
		padding-top: 5px;
		padding-bottom: 5px;
		line-height: 15px;
	}
	.navbar-nav {
		float: right;
		margin: 11px 21px;
		margin-right: 32%;
		display: inherit;
		width: 200px;
		background-color: transparent;
	}
	.navbar-fixed-top .navbar-collapse {
		height: auto;
		background-color: #2c2e2e;
	}

	/* 1. Wipe out the old 200px fixed width, floats, and hardcoded right margins */
	.navbar-custom .navbar-nav {
		float: none !important;
		width: 100% !important;
		margin: 20px 0 0 0 !important; /* Clears margin-right: 32% / 38% */
		text-align: center !important;
	}

	/* 2. Reset the individual list links so they stack perfectly straight */
	.navbar-custom .navbar-nav li {
		float: none !important;
		display: block !important;
		width: 100% !important;
		margin: 10px 0 !important; /* Replaces the off-center 'margin: 5px 50px' */
	}

	.navbar-custom .navbar-nav > li > a {
		display: block !important;
		text-align: center !important;
		padding: 10px 0;
	}

	/* 3. Keep the full-width resume wrapper clean at the bottom */
	.navbar-right-wrapper {
		display: block;
		width: 100%;
		clear: both;
		padding: 15px 0 25px 0;
		box-sizing: border-box;
	}

	.resume-btn {
		display: block !important;
		width: 100%;
		text-align: center;
		padding: 12px 0;
		box-sizing: border-box;
	}

	.section-padding {
		padding: 50px 0;
	}
	.welcome-text p {
		width: 90%;
		font-size: 14px;
	}
	.welcome-text h1 {
		font-size: clamp(40px, 8vw, 60px); /* Smaller max for phones */
		line-height: 1.1;
	}

	.section-header {
		margin-bottom: 100px;
	}
	.banner-area {
		height: 100vh;
	}
	.about-left {
		text-align: center;
	}
	.about-left h2 {
		font-size: 40px;
		line-height: 50px;
	}
	#projects .projects-row > div {
		display: flex; /* Allows the internal .single-service card to stretch fully */
		flex: 0 0 100%; /* Default: 1 column on mobile devices */
		box-sizing: border-box;
		margin-bottom: 48px;
	}
	.single-service {
		width: 90%;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.single-service img {
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	.case-tags {
		align-items: center;
		justify-content: center;
	}
	#testimonial-carousel .item p {
		width: 100%;
		font-size: 10px;
	}

	.link-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.case-study-link {
		padding-left: 0;
	}
}

/* Wide Mobile Layout: 480px. */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	.navbar-nav {
		margin-right: 38%;
	}
	.navbar-brand {
		padding: 18px !important;
		margin: 0 !important;
	}
	.welcome-text h1 {
		font-size: clamp(50px, 8vw, 80px); /* Slightly larger range for wider phones */
	}
	.about-left h2 {
		font-size: 35px;
	}

	#projects .projects-row > div {
		flex: 0 0 calc((100% - 30px) / 2);
	}
	.case-tags {
		align-items: center;
		justify-content: center;
	}
	.link-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.case-study-link {
		padding-left: 0;
	}
}

@media screen and (min-width: 600px) and (max-width: 767px) {
	.navbar-brand {
		padding: 16px !important;
		margin: 0 !important;
	}
	.welcome-text p {
		width: 60%;
		font-size: 16px;
	}
	.single-service img {
		margin-top: -56px;
	}
	.case-tags {
		align-items: center;
		justify-content: center;
	}
	.link-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.case-study-link {
		padding-left: 0;
	}
}
