/**
 * ============================================================
 *    Custom CSS for Blue / MavScript.blu Portfolio
 *    Theme: Dark modern with cyan/teal accent
 * ============================================================
 *
 * @format
 */

/* ----- CSS Variables ----- */
:root {
	--accent: #00d4aa;
	--accent-dark: #00b894;
	--accent-glow: rgba(0, 212, 170, 0.3);
	--bg-primary: #0d1117;
	--bg-secondary: #161b22;
	--bg-card: #1c2333;
	--text-primary: #e6edf3;
	--text-muted: #eeeff0;
	--border-color: #30363d;
	--font-body: "Inter", sans-serif;
	--font-heading: "Playfair Display", serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	font-family: var(--font-body);
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.7;
	overflow-x: hidden;
}

.text-muted {
	color: rgb(176, 176, 176) !important;
}

/* ----- Utility Classes ----- */
.text-accent {
	color: var(--accent) !important;
}

.bg-accent {
	background-color: var(--accent) !important;
}

.section-bg-dark {
	background-color: var(--bg-secondary);
}

.letter-spacing-wide {
	letter-spacing: 2px;
}

.section-heading {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
	.section-heading {
		font-size: 1.8rem;
	}
}

/* ----- Accent Button ----- */
.btn-accent {
	background-color: var(--accent);
	color: #0d1117;
	font-weight: 600;
	border: none;
	transition: all 0.3s ease;
}

.btn-accent:hover {
	background-color: var(--accent-dark);
	color: #0d1117;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline-accent {
	color: var(--accent);
	border-color: var(--accent);
	background: transparent;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn-outline-accent:hover,
.btn-outline-accent.active {
	background-color: var(--accent);
	border-color: var(--accent);
	color: #0d1117;
}

/* ----- Badge Styles ----- */
.badge.bg-accent-soft {
	background-color: rgba(0, 212, 170, 0.15);
	color: var(--accent);
	font-weight: 500;
	font-size: 0.8rem;
	padding: 0.4em 0.8em;
}

.badge.bg-dark {
	background-color: var(--bg-secondary) !important;
	color: var(--text-muted);
	font-weight: 400;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
	padding: 1rem 0;
	background-color: rgba(13, 17, 23, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
}

.navbar.scrolled {
	padding: 0.5rem 0;
	background-color: rgba(13, 17, 23, 0.95);
	border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
	font-size: 1.25rem;
}

.nav-link {
	color: var(--text-muted) !important;
	font-weight: 500;
	font-size: 0.9rem;
	padding: 0.5rem 1rem !important;
	transition: color 0.3s ease;
	position: relative;
}

.nav-link:hover,
.nav-link.active {
	color: var(--accent) !important;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 60%;
}

.navbar-toggler {
	border-color: var(--border-color);
}

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
#hero {
	position: relative;
}

.hero-slide {
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.hero-gradient-intro {
	background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-gradient-skills {
	background: linear-gradient(135deg, #0d1117 0%, #1b2838 50%, #0f3460 100%);
}

.hero-gradient-collaborate {
	background: linear-gradient(135deg, #0d1117 0%, #2d1b4e 50%, #1a1a2e 100%);
}

.hero-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
		ellipse at center,
		transparent 0%,
		rgba(13, 17, 23, 0.6) 100%
	);
}

.hero-caption {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 0 1rem;
}

.hero-caption h1 {
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-caption .lead {
	font-size: 1.25rem;
	color: var(--text-muted);
}

@media (max-width: 768px) {
	.hero-slide {
		min-height: 500px;
	}
	.hero-caption h1 {
		font-size: 2rem;
	}
	.hero-caption .lead {
		font-size: 1rem;
	}
}

.carousel-indicators [data-bs-target] {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.3);
	border: none;
}

.carousel-indicators .active {
	background-color: var(--accent);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
	background-color: var(--bg-primary);
}

.profile-photo-wrapper {
	display: inline-block;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 40px var(--accent-glow);
	border: 3px solid var(--accent);
}

.profile-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 768px) {
	.profile-photo-wrapper {
		width: 200px;
		height: 200px;
	}
}

/* Accordion customization */
.accordion-item {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	margin-bottom: 0.5rem;
	border-radius: 8px !important;
	overflow: hidden;
}

.accordion-button {
	background-color: var(--bg-card);
	color: var(--text-primary);
	font-weight: 500;
	border: none;
	box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
	background-color: rgba(0, 212, 170, 0.08);
	color: var(--accent);
}

.accordion-button::after {
	filter: invert(1);
}

.accordion-body {
	color: var(--text-muted);
	background-color: var(--bg-card);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.progress {
	height: 10px;
	background-color: var(--bg-card);
	border-radius: 5px;
	overflow: hidden;
}

.progress-bar.bg-accent {
	background: linear-gradient(
		90deg,
		var(--accent-dark),
		var(--accent)
	) !important;
	border-radius: 5px;
	transition: width 1.5s ease-out;
}

.skill-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.skill-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
#portfolio {
	background-color: var(--bg-primary);
}

.portfolio-filter-group .btn {
	border-radius: 25px;
	padding: 0.4rem 1.2rem;
	font-size: 0.85rem;
}

.project-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.4s ease;
}

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

.project-card-thumbnail {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-card-thumbnail i {
	font-size: 3.5rem;
	color: rgba(255, 255, 255, 0.7);
}

.project-modal-thumbnail {
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.project-modal-thumbnail i {
	font-size: 4rem;
	color: rgba(255, 255, 255, 0.7);
}

/* Gradient backgrounds for project cards */
.project-gradient-pixelboof {
	background: linear-gradient(135deg, #667eea, #764ba2);
}
.project-gradient-wtwr {
	background: linear-gradient(135deg, #f093fb, #f5576c);
}
.project-gradient-dnd {
	background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.project-gradient-overlays {
	background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.project-gradient-spots {
	background: linear-gradient(135deg, #fa709a, #fee140);
}
.project-gradient-golfscorer {
	background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.card-title {
	color: var(--text-primary);
}

.card-text {
	font-size: 0.9rem;
}

/* Portfolio item hide/show animation */
.portfolio-item {
	transition: all 0.4s ease;
}

.portfolio-item.hide {
	opacity: 0;
	transform: scale(0.8);
	position: absolute;
	pointer-events: none;
}

.portfolio-item.show {
	opacity: 1;
	transform: scale(1);
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stat-item {
	padding: 1.5rem;
}

.stat-number {
	font-size: 2.8rem;
	font-family: var(--font-heading);
}

@media (max-width: 576px) {
	.stat-number {
		font-size: 2rem;
	}
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
	background-color: var(--bg-primary);
}

.contact-info {
	padding: 1.5rem;
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	height: 100%;
}

.contact-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(0, 212, 170, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contact-icon i {
	font-size: 1.2rem;
	color: var(--accent);
}

.social-link {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	text-decoration: none;
	transition: all 0.3s ease;
}

.social-link:hover {
	background-color: var(--accent);
	border-color: var(--accent);
	color: var(--bg-primary);
}

/* Form inputs */
.form-input-dark {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 0.75rem 1rem;
	border-radius: 8px;
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease;
}

.form-input-dark:focus {
	background-color: var(--bg-card);
	color: var(--text-primary);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input-dark::placeholder {
	color: var(--text-muted);
	opacity: 0.6;
}

.form-label {
	font-weight: 500;
	font-size: 0.9rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
	border: 1px solid var(--border-color);
	border-radius: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
	border-top: 1px solid var(--border-color) !important;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
#backToTop {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 45px;
	height: 45px;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999;
	box-shadow: 0 4px 15px var(--accent-glow);
	transition: all 0.3s ease;
}

#backToTop:hover {
	transform: translateY(-3px);
}

#backToTop.show {
	display: flex;
}

/* ============================================================
   FADE-IN ANIMATION (jQuery scroll effect)
   ============================================================ */
.fade-in {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 992px) {
	.navbar-collapse {
		background-color: var(--bg-secondary);
		padding: 1rem;
		border-radius: 8px;
		margin-top: 0.5rem;
	}
}

@media (max-width: 576px) {
	section {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}

	.portfolio-filter-group .btn {
		font-size: 0.75rem;
		padding: 0.3rem 0.8rem;
	}
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Skip to main content link */
.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--accent);
	color: var(--bg-primary);
	padding: 0.75rem 1.5rem;
	border-radius: 0 0 8px 8px;
	font-weight: 600;
	z-index: 10000;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* Focus-visible styles for keyboard navigation */
*:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.btn:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--accent-glow);
}

.nav-link:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.form-control:focus-visible {
	outline: none;
}

.accordion-button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -2px;
	box-shadow: none;
}

.social-link:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	background-color: var(--accent);
	border-color: var(--accent);
	color: var(--bg-primary);
}

.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

.btn-close:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
	box-shadow: none;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	html {
		scroll-behavior: auto;
	}

	.fade-in {
		opacity: 1;
		transform: none;
	}

	.hero-slide {
		transition: none;
	}

	.carousel-item {
		transition: none;
	}

	.project-card:hover {
		transform: none;
	}

	.skill-card:hover {
		transform: none;
	}

	.btn-accent:hover {
		transform: none;
	}

	#backToTop:hover {
		transform: none;
	}
}

/* High contrast mode support */
@media (forced-colors: active) {
	.btn-accent,
	.btn-outline-accent {
		border: 2px solid ButtonText;
	}

	.progress-bar {
		background: Highlight !important;
	}

	.social-link {
		border: 2px solid ButtonText;
	}
}

/* ----- Scrollbar Styling ----- */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--accent);
}
