/* Custom Styles for Dimov Serhii Portfolio */

/* Universal reset */
* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
}

:root {
	--primary-color: #0d6efd;
	--secondary-color: #6c757d;
	--success-color: #198754;
	--info-color: #0dcaf0;
	--warning-color: #ffc107;
	--danger-color: #dc3545;
	--light-color: #f8f9fa;
	--dark-color: #212529;
	--font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--purple-color: #6f42c1;
	--pink-color: #d63384;
	--orange-color: #fd7e14;
}

/* Custom text colors for technology icons */
.text-purple {
	color: var(--purple-color) !important;
}

.text-pink {
	color: var(--pink-color) !important;
}

.text-orange {
	color: var(--orange-color) !important;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
}

/* Fix for deprecated API warning - explicit font-size for headings in sections */
section h1,
article h1,
aside h1,
nav h1 {
	font-size: 2.5rem !important;
	font-weight: 700;
}

section h1.display-1 {
	font-size: 5rem !important;
}

section h1.display-4 {
	font-size: 2.5rem !important;
}

@media (max-width: 768px) {

	section h1,
	article h1,
	aside h1,
	nav h1 {
		font-size: 2rem !important;
	}

	section h1.display-1 {
		font-size: 3rem !important;
	}

	section h1.display-4 {
		font-size: 2rem !important;
	}
}

main {
	/* margin-top: 76px; */
}

/* Custom Navbar Styles */
.navbar-brand {
	font-size: 1.5rem;
	letter-spacing: 1px;
}

.navbar-nav .nav-link {
	font-weight: 500;
	transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
	background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
	min-height: 100vh;
	margin-top: -80px;
	padding-top: 76px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-section h1 {
	min-height: 4rem;
	display: flex;
	align-items: center;
}

.profile-image-placeholder {
	transition: transform 0.3s ease;
}

.profile-image-placeholder:hover {
	transform: scale(1.05);
}

/* Card Hover Effects */
.card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.skill-card {
	transition: all 0.3s ease;
	border: 2px solid transparent;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.skill-card:hover {
	border-color: var(--primary-color);
	transform: translateY(-3px);
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .15) !important;
}

.skill-card i {
	transition: transform 0.3s ease;
}

.skill-card:hover i {
	transform: scale(1.1);
}

/* Project Cards */
.project-card {
	transition: all 0.3s ease;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .2) !important;
}

/* Social Links */
.social-links a {
	transition: transform 0.3s ease;
	display: inline-block;
}

.social-links a:hover {
	transform: translateY(-3px);
}

/* Button Styles */
.btn {
	font-weight: 500;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .1);
}

/* Custom Badges */
.badge {
	font-weight: 500;
	letter-spacing: 0.3px;
}

/* Form Styles */
.form-control {
	border-radius: 0.5rem;
	border: 2px solid #e9ecef;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Form Validation Styles */
.form-control.is-valid {
	border-color: #198754;
	box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	font-size: 0.875em;
	color: #dc3545;
	animation: fadeInDown 0.3s ease;
}

.valid-feedback {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	font-size: 0.875em;
	color: #198754;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Feature Box */
.feature-box {
	text-align: center;
	padding: 1rem;
}

.feature-box i {
	color: rgba(255, 255, 255, 0.8);
}

/* Animation Classes */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.hero-section {
		padding: 3rem 0;
		min-height: calc(100vh - 76px);
	}

	main {
		margin-top: 76px;
	}

	.display-4 {
		font-size: 2.5rem;
	}

	.lead {
		font-size: 1rem;
	}

	.profile-image-placeholder {
		width: 200px !important;
		height: 200px !important;
		margin-top: 2rem;
	}

	.d-flex.gap-3 {
		flex-direction: column;
		gap: 0.5rem !important;
	}

	.btn-lg {
		width: 100%;
	}
}

@media (max-width: 576px) {

	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.card-body {
		padding: 1rem;
	}

	.display-4 {
		font-size: 2rem;
	}

	.display-5 {
		font-size: 1.75rem;
	}

	.display-6 {
		font-size: 1.5rem;
	}
}

/* Loading Animation */
.loading {
	opacity: 0.7;
	pointer-events: none;
}

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

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
	background: #0a58ca;
}



/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Print Styles */
@media print {

	.navbar,
	.btn,
	footer {
		display: none;
	}

	body {
		padding-top: 0;
	}

	.card {
		box-shadow: none;
		border: 1px solid #000;
	}
}

/* Декоративные технические иконки */
@keyframes floatTech {

	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
	}

	50% {
		transform: translateY(-20px) rotate(5deg);
	}
}

.tech-icons {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
}

.tech-icon {
	position: absolute;
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.08);
	animation: floatTech 6s ease-in-out infinite;
	opacity: 0.8;
}

.tech-icon-1 {
	top: 15%;
	left: 8%;
	animation-delay: 0s;
}

.tech-icon-2 {
	top: 25%;
	right: 12%;
	animation-delay: 1s;
}

.tech-icon-3 {
	bottom: 35%;
	left: 15%;
	animation-delay: 2s;
}

.tech-icon-4 {
	bottom: 20%;
	right: 8%;
	animation-delay: 3s;
}

.tech-icon-5 {
	top: 45%;
	left: 5%;
	animation-delay: 4s;
}

.tech-icon-6 {
	top: 60%;
	right: 5%;
	animation-delay: 5s;
}

.tech-icon-7 {
	top: 70%;
	left: 25%;
	animation-delay: 6s;
	font-size: 1.8rem;
}

.tech-icon-8 {
	bottom: 45%;
	right: 25%;
	animation-delay: 7s;
	font-size: 1.6rem;
}

/* Скрыть иконки на мобильных устройствах */
@media (max-width: 768px) {
	.tech-icons {
		display: none;
	}
}