/*======================================
//--//-->   INTRO
======================================*/

.intro {
	height: 100vh;
	position: relative;
	color: #fff;
}

.intro .intro-content {
	text-align: center;
	position: absolute;
}

.intro .overlay-itro {
	background-color: rgba(0, 0, 0, 0.6);
	position: absolute;
	top: 0;
	left: 0px;
	padding: 0;
	height: 100%;
	width: 100%;
	opacity: 0.9;
}

.intro .intro-title {
	color: #fff;
	font-weight: 600;
	font-size: 3rem;
}

.intro .intro-subtitle {
	font-size: 1.5rem;
	font-weight: 300;
}

.intro .text-slider-items {
	display: none;
}

.intro-single {
	height: 350px;
}

.intro-single .intro-content {
	margin-top: 30px;
}

.intro-single .intro-title {
	text-transform: uppercase;
	font-size: 3rem;
}

.intro-single .breadcrumb {
	background-color: transparent;
	color: #0078ff;
}

.intro-single .breadcrumb .breadcrumb-item:before {
	color: #cde1f8;
}

.intro-single .breadcrumb .breadcrumb-item.active {
	color: #cde1f8;
}

.intro-single .breadcrumb a {
	color: #fff;
}

/* Add these styles for the CV button */
#cv-button {
	background-color: transparent;
	border: 2px solid #fff;
	color: #fff;
	font-weight: 600;
	transition: all 0.5s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#cv-button:hover {
	background-color: #fff;
	color: #0078ff;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

/*======================================
//--//-->   ABOUT
======================================*/

.about-mf .box-shadow-full {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.about-mf .about-img {
	margin-bottom: 2rem;
}

.about-mf .about-img img {
	margin-left: 10px;
}

.skill-mf span {
	color: #4e4e4e;
	font-weight: bolder;
}

/* Thin separator line under each skill (not a progress meter) */
.skill-mf .progress {
	background-color: transparent;
	margin: 0.6rem 0 1.1rem 0;
	border-radius: 0;
	height: 2px;
}

.skill-mf .progress .progress-bar {
	height: 2px;
	background: linear-gradient(
		90deg,
		#0078ff 0%,
		rgba(0, 120, 255, 0.35) 60%,
		rgba(0, 120, 255, 0.08) 100%
	);
}

.about-info span {
	word-wrap: break-word;
	word-break: break-all;
}

/*======================================
//--//-->   COUNTER
======================================*/

.counter-box {
	color: #fff;
	text-align: center;
}

.counter-ico {
	margin-bottom: 1rem;
}

.counter-ico .ico-circle {
	height: 60px;
	width: 60px;
	line-height: 1.8;
	box-shadow: 0 0 0 10px #cde1f8;
}

.counter-num .counter {
	font-size: 2rem;
	margin-bottom: 0;
}

/*======================================
//--//-->   PORTFOLIO
======================================*/

.work-box {
	margin-bottom: 3rem;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	background-color: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
	transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
	overflow: hidden;
	transform: translateZ(0);
	perspective: 1000px;
}

.work-box:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(30, 30, 30, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.work-box:hover {
		transform: none;
	}
}

.work-box .carousel {
	transition: all 1s;
}

.work-box:hover .d-block {
	-webkit-transform: scale(1.06);
	transform: scale(1.06);
}

/* Neutral backdrop doubles as letterbox fill and loading skeleton */
.work-box .carousel-item {
	background: linear-gradient(110deg, #eef1f5 8%, #f7f9fb 18%, #eef1f5 33%);
	background-size: 200% 100%;
	animation: skeleton-shimmer 1.4s linear infinite;
}

@keyframes skeleton-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* Once the slide's image is in, the letterbox bands should match the
   card surface so the image sits seamlessly on it (.img-ready is added
   by portfolio.js on image load; class used instead of :has() for
   browser compatibility) */
.work-box .carousel-item.img-ready {
	animation: none;
	background: #fff;
}

.carousel-item img {
	/* contain, not stretch: keeps app screenshots undistorted */
	object-fit: contain;
	height: 290px; /* Adjust this value as needed */
	width: 100%;
	/* transform/opacity only: cheap to animate (GPU), unlike "all" */
	transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
	will-change: transform;
}

/* Fade images in once lazy-loading finishes.
   Keep the transform transition here too — this rule ties with
   ".carousel-item img" on specificity and would otherwise drop it. */
img.lazy-load {
	opacity: 0;
	transition: opacity 0.35s ease-in,
		transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

img.lazy-load.loaded {
	opacity: 1;
}

.work-box .carousel-control-prev,
.work-box .carousel-control-next,
.work-box .carousel-indicators {
	z-index: 5;
}

/* Bootstrap's indicators are translucent white — invisible where they
   sit on the light card. Tint them per theme instead. */
.work-box .carousel-indicators li {
	background-color: rgba(30, 30, 30, 0.22);
	border-radius: 2px;
	transition: background-color 0.25s ease;
}

.work-box .carousel-indicators li.active {
	background-color: var(--accent);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.5));
}

.work-img {
	display: block;
	overflow: hidden;
}

.work-content {
	padding: 2rem 3% 1rem 4%;
}

.work-btn {
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

#buttons-work {
	display: flex;
	flex-wrap: wrap;
}

.w-description {
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #6c757d;
	line-height: 1.5;
}

.work-content .w-more {
	color: #4e4e4e;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
}

.work-content .w-more .w-role {
	color: #0078ff;
	font-size: 0.9em;
	margin-left: auto;
}

.work-content .w-like {
	font-size: 2.5rem;
	color: #0078ff;
	float: right;
}

.work-content .w-like a {
	color: #0078ff;
}

.work-content .w-like .num-like {
	font-size: 0.7rem;
}

.w-title {
	font-size: 1.2rem;
}

/*======================================
//--//-->   TESTIMONIALS
======================================*/

.testimonials .owl-carousel .owl-item img {
	width: auto;
}

.testimonial-box {
	color: #fff;
	text-align: center;
}

.testimonial-box .author-test {
	margin-top: 1rem;
}

.testimonial-box .author-test img {
	margin: 0 auto;
}

.testimonial-box .author {
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	margin: 1rem 0;
	display: block;
	font-size: 1.4rem;
}

.testimonial-box .comit {
	font-size: 2rem;
	color: #0078ff;
	background-color: #fff;
	width: 52px;
	height: 52px;
	display: block;
	margin: 0 auto;
	border-radius: 50%;
	line-height: 1.6;
}

/*======================================
//--//-->   FOOTER
======================================*/

footer {
	text-align: center;
	color: #fff;
	padding-bottom: 4rem;
}

footer .copyright {
	margin-bottom: 0.3rem;
}

footer .credits {
	margin-bottom: 0;
}

footer .credits a {
	color: #fff;
}

/*======================================
//--//-->   THEME / MODERN POLISH
======================================*/

:root {
	--accent: #0078ff;
	--accent-2: #2fa4ff;
	--accent-deep: #0055c8;
}

/*--/ Brand gradient sections (replaces stock-photo backgrounds) /--*/
.bg-brand-gradient {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		135deg,
		var(--accent-deep) 0%,
		var(--accent) 55%,
		var(--accent-2) 100%
	);
}

.bg-brand-gradient::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(
			600px 300px at 85% 15%,
			rgba(255, 255, 255, 0.16),
			transparent 60%
		),
		radial-gradient(
			520px 280px at 10% 90%,
			rgba(0, 20, 60, 0.25),
			transparent 60%
		);
	pointer-events: none;
}

.bg-brand-gradient .container {
	position: relative;
	z-index: 1;
}

/* The old photo sections used a blue overlay div; not needed on gradients */
.bg-brand-gradient .overlay-mf {
	display: none;
}

/*--/ Hero polish /--*/
.intro {
	position: relative;
}

.intro-title .text-accent {
	background: linear-gradient(90deg, #3d9bff, #7cc4ff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #3d9bff; /* fallback */
}

.intro-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.scroll-hint {
	position: absolute;
	bottom: 1.6rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.3rem;
	animation: hint-bounce 2.2s ease-in-out infinite;
	z-index: 2;
}

.scroll-hint:hover {
	color: #fff;
}

@keyframes hint-bounce {
	0%,
	100% {
		transform: translate(-50%, 0);
	}
	50% {
		transform: translate(-50%, 10px);
	}
}

/*--/ Theme toggle button /--*/
.theme-toggle {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 1.15rem;
	line-height: 1;
	padding: 0.4rem 0.6rem;
	margin-left: 0.5rem;
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
	transform: rotate(18deg);
}

.theme-toggle:focus {
	outline: 0;
}

.navbar-b.navbar-reduce .theme-toggle {
	color: var(--accent);
}

/*--/ Unify card buttons & links with the brand accent
      (bootstrap's .btn-outline-info teal clashed with the blue) /--*/
.work-btn.btn-outline-info {
	color: var(--accent);
	border-color: var(--accent);
	border-radius: 50rem;
	padding-left: 1.1rem;
	padding-right: 1.1rem;
	transition: background-color 0.25s ease, color 0.25s ease,
		box-shadow 0.25s ease;
}

.work-btn.btn-outline-info:hover,
.work-btn.btn-outline-info:focus {
	background-color: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 120, 255, 0.35);
}

.see-more-toggle {
	color: var(--accent);
	font-weight: 600;
}

.see-more-toggle:hover {
	color: var(--accent-deep);
}

/*--/ Scroll reveal /--*/
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.reveal-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.scroll-hint {
		animation: none;
	}
}

/*======================================
//--//-->   DARK MODE
======================================*/

[data-theme="dark"] body {
	background-color: #0e1116;
	color: #b9c2cc;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
	color: #f0f4f8;
}

/* Navbar (scrolled state) */
[data-theme="dark"] .navbar-b.navbar-reduce {
	background-color: #11151c;
	box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .navbar-b.navbar-reduce .navbar-toggler span {
	background-color: #f0f4f8;
}

[data-theme="dark"] .navbar-b.navbar-reduce .theme-toggle {
	color: #ffd75e;
}

/* Cards & containers (shorthand clears the light-theme gradient image;
   #contact variant needed to out-rank an id-based rule in _button.css) */
[data-theme="dark"] .box-shadow-full,
[data-theme="dark"] #contact.box-shadow-full {
	background: #161b22;
}

[data-theme="dark"] .work-box {
	background-color: #161b22;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .work-box:hover {
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .work-box .carousel-item {
	background: linear-gradient(110deg, #1b212b 8%, #222a36 18%, #1b212b 33%);
	background-size: 200% 100%;
}

[data-theme="dark"] .work-box .carousel-item.img-ready {
	animation: none;
	background: #161b22; /* same as the card surface — seamless letterbox */
}

[data-theme="dark"] .work-box .carousel-indicators li {
	background-color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .work-box .carousel-indicators li.active {
	background-color: #fff;
}

[data-theme="dark"] .skill-mf span {
	color: #b9c2cc;
}

[data-theme="dark"] .title-s {
	color: #dbe4ee;
}

/* Social icons + divider inside the dark contact card */
[data-theme="dark"] .socials .ico-circle,
[data-theme="dark"] .socials .ico-circle i {
	color: #e6ecf3;
}

[data-theme="dark"] .box-shadow-full hr {
	border-color: #2a3140;
	background-color: #2a3140;
}

/* Contact form on dark surface */
[data-theme="dark"] .contactForm .form-control {
	background-color: #1d2430;
	border-color: #2a3140;
	color: #e6ecf3;
}

[data-theme="dark"] .contactForm .form-control::placeholder {
	color: #7c8794;
}

[data-theme="dark"] .contactForm .form-control:focus {
	border-color: var(--accent);
	background-color: #1d2430;
	color: #e6ecf3;
}
