/* light */
.light-theme {
	--bg-color: white;
	--text-color: black;
	--text-color-transparent: rgba(233, 233, 233, 0.342);
}

/* dark */
.dark-theme {
	--bg-color: black;
	--text-color: white;
	--text-color-transparent: rgba(36, 36, 36, 0.171);
}

body {
	font-family: "Quicksand", "Open Sans", "Roboto", sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	transition: background-color 0.3s ease, color;
	line-height: 1.6;
}
::selection {
	background-color: var(--text-color-transparent);
	color: gold;
	text-shadow: 3px 5px 10px rgba(255, 217, 0, 0.432);
	transition: 0.15s ease-in-out;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background-color: transparent;
	position: relative;
	top: 0;
	z-index: 1;
}
.main-container {
	max-width: 80vw;
	margin: 0 auto;
}
header .logo {
	display: flex;
	flex-direction: row;
	align-items: center;
  	font-size: clamp(15px, 2vw, 26px);
	font-weight: bold;
	color: var(--text-color);
	text-shadow: 6px 8px 10px var(--text-color);
	border-bottom: 2px groove transparent;
	transition: 0.2s;
}
.logo img {
	display: inline-block;
	width: 20px;
	height: 20px;
}
.logo img:hover {
	display: inline-block;
	width: 25px;
	height: 25px;
}
.dark-theme .logo img{
  filter:invert(1);
}
header .logo:hover {
	color: var(--text-color);
	text-shadow: 3px 4px 5px var(--text-color);
	border-bottom: 2px groove var(--text-color);
	transition: 0.2s;
}
nav ul {
	list-style: none;
	display: flex;
	align-items: center;
}

nav ul li {
	margin-left: 20px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: bold;
  background-color: #83838327;
  padding: clamp(5px, 1vw, 10px) clamp(10px, 2vw, 20px); 
  border-radius: 5px;
  border: 2px groove transparent;
}

nav ul li a:hover {
	border-bottom: #da0707;
	border-bottom-style: groove;
	border-bottom-width: 2px;
}
nav ul li a:active {
	border: 2px groove var(--text-color);
	border-color: var(--text-color);
	background-color: var(--text-color);
	color: var(--bg-color);
}

.intro {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
	margin-bottom: 15vh;
}
.social-links {
	position: sticky;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	width: fit-content;
	z-index: 1;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
	text-decoration: none;
	border: 1px solid var(--text-color);
	background-color: var(--text-color);
	transition: background-color 0.3s ease, color 0.1s ease;
}

.social-links i {
	color: var(--bg-color);
	font-size: 30px;
	transition: inherit;
}

.social-links a:hover {
	background-color: var(--bg-color);
	color: var(--text-color);
}

.social-links a:hover i {
	color: var(--text-color); /* Іконка стає чорною */
}

.intro-text {
	text-align: center;
	max-width: 600px;
}

.intro-text h1 {
	font-size: clamp(1.4rem, 5vw, 3rem);
	margin-bottom: 20px;
}

.intro-text h1 span {
	color: #da0707;
}

.intro-text p {
	font-size: clamp(12px, 3vw, 18px);
	margin-bottom: 30px;
}

.intro-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.intro-buttons .btn {
	background-color: transparent;
	border: 2px solid rgb(150, 150, 150);
	border-radius: 10px;
	padding: clamp(3px, 1vw, 10px) clamp(6px, 2vw, 20px);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-color);
	font-size: clamp(10px, 2vw, 16px);
	position: relative;
	/* overflow: hidden; */
	transition: all 0.3s ease-in-out;
}

.intro-buttons .btn:hover {
	background-color: #ff5a47;
	border-color: var(--text-color);
	box-shadow: 4px 4px 15px #ff0000d2;
	transform: translateY(-2px);
}

.intro-buttons .btn:active {
	background-color: #ff0000;
	border-color: var(--text-color);
	box-shadow: 5px 5px 50px #ff0000d2;
	transform: scale(0.98);
}

.download-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: bold;
}

.download-btn::after {
	content: "Download Resume";
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	border-radius: 5px;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
}

.download-btn:hover::after {
	opacity: 1;
	bottom: -40px;
}
.contact-btn {
	position: relative;
	font-weight: bold;
	border-color: #ff0000;
	color: #ff0000;
	transition: all 0.3s ease-in-out;
	/* overflow: hidden; */
}
/* .contact-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300%;
	height: 300%;
	background: rgba(255, 0, 0, 0.2);
	transition: all 0.4s ease-in-out;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
} */
.contact-btn::after {
	content: "Contact me";
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	border-radius: 5px;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.3s ease-in-out, bottom 0.3s ease-in-out;
}
.contact-btn:hover::after {
	opacity: 1;
	bottom: -40px;
}
.contact-btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

.contact-btn:hover {
	background-color: #ff0000;
	color: white;
	box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

.contact-btn:active {
	transform: scale(0.95);
	box-shadow: 0 0 25px rgba(255, 0, 0, 0.9);
}

.container {
	width: 85%;
	margin: 0 auto;
}

h2{
	font-size: clamp(2rem, 3vw, 5rem);
	margin-bottom: 1rem;
}

h3 {
	font-size: clamp(1rem, 3vw, 2rem);
	margin: 2rem 0 1rem;
}

.highlight {
	color: #da0707;
}
.highlight2 {
	color: #3b8510;
}
.about-section {
	min-height: 100vh;
	padding: 4rem 0;
}

.about-content {
	display: flex;
	justify-content: center;
	column-gap: 40px;
	align-items: center;
	margin-bottom: 2rem;
}

.about-text {
	font-size: 18px;
	max-width: 50%;
}
.about-image {
	max-width: 500px;
}
.about-image img {
	max-width: 100%;
	border-radius: 15px;
}

.skills-icons {
	display: flex;	
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 1rem;
	box-shadow: 0 0 10px rgba(141, 141, 141, 0.5);
	border-radius: 15px;
	padding: 1rem;
}

.skills-icons img {
	width: 40px;
	height: 40px;
	transition: all 0.5s ease;
}
.skills-icons img:hover {
	box-shadow: 5px 5px 20px rgba(141, 141, 141, 0.562);
	border-radius: 10px;
	transform: scale(1.2);
	transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.skill.inactive img {
    filter: grayscale(100%);
    background-color: gray;
    opacity: 0.6;
}

.skill::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
}

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

.skill:hover img {
    filter: none; 
}

.skill:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}
.coming-soon {
	width: 20px;
}
.works-section {
	padding: 4rem 0;
	min-height: 90vh;
}
.contact-section {
	padding: 4rem 0;
}

.works-gallery {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

.work-item {
	text-align: center;
	display: flex;
	flex-grow: 1;
	flex-direction: column;
	justify-content: space-around;
	max-width: 500px;
	background-color: var(--bg-color);
	box-shadow: 0 0 10px rgba(141, 141, 141, 0.5);
	padding: 1rem;
	border-radius: 10px;
}

.work-item img {
	border-radius: 10px;
}

.see-more {
	margin: 2rem auto;
	background-color: var(--bg-color);
	padding: clamp(5px, 1vw, 10px) clamp(10px, 2vw, 20px); 
	background-color: transparent;
	border: 2px solid #ff0077;
	color: #ff0077;
	border-radius: 5px;
	cursor: pointer;
	width: fit-content;
	transition: background-color 0.5s ease;
}
.see-more a {
	color: var(--text-color);
	text-decoration: none;
	font-size: clamp(0.5rem, 3vw, 2rem);
}
.see-more:hover {
	background-color: #ff3748;
	color: var(--bg-color);
}
.see-more:active {
	background-color: #ff0000;
	color: var(--bg-color);
}
.contact-section {
	background-color: var(--bg-color);
	color: var(--text-color);
	padding: 4rem 0;
}
.contact-container {
	width: 90%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}

.contact-info {
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	font-size: 20px;
}

form {
	width: 50%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

form input,
form textarea {
	padding: 1rem;
	border-radius: 5px;
	border: none;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--text-color);
	cursor: pointer;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

form button {
	padding: 1rem;
	border-radius: 5px;
	background-color: #f34848;
	color: var(--text-color);
	border: none;
	cursor: pointer;
}

form button:hover {
	background-color: #ff0000;
}
footer {
	box-shadow: 0 0 40px rgba(141, 141, 141, 0.3);
	border-radius: 30px;
}
footer h2 {
	text-align: center;
	font-size: 18px;
	margin: 0;
}
footer a {
	text-decoration: none;
	color: var(--text-color);
}
.fa-heart {
	color: red;
}
.fa-instagram:before,
.fa-linkedin-in:before {
	margin-left: 2.5px;
}
#theme-btn {
	margin-left: 5px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 30px;
	outline: none;
}

#theme-icon {
	transition: all 0.5s ease;
}

#theme-icon.fa-sun {
	color: orange;
}

#theme-icon.fa-moon {
	color: white;
	font-size: clamp(20px, 3vw, 28px);
}

/*  */
#theme-icon.fa-sun:hover {
	box-shadow: 0 0 40px 1px rgba(255, 217, 0, 0.795); /**/
	transform: rotate(360deg);
}

#theme-icon.fa-moon:hover {
	box-shadow: 0 0 50px 1px rgba(255, 255, 255, 0.7);
	transform: translateY(-5px);
}
@media screen and (max-width: 860px) {
	.skills-icons .coming-soon {
		display: none;
	}
	h2,
	h3 {
		text-align: center;
	}
}
.letter {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.letter:hover {
  transform: scale(1.5);
}
@media screen and (max-width: 768px){
	.about-content{
	flex-direction: column;
	}
	.about-image img {
		max-width: 300px;
	}
	.contact-container{
		flex-direction: column;

	}
	form{
		width: 100%;
	}
	.about-text {
    font-size: 18px;
    max-width: 100%;
}
nav ul{
	flex-wrap: wrap;
	gap: 4px;
}
nav ul li {
	margin: 0;
}
.social-links{
	flex-direction: row;
	position: relative;
	top: 35px;
	gap: 10px;
	margin: 0 auto;
	left: 0;
}
.fa-instagram:before{
	margin: 0;
}

}
.social-links a{
	padding: clamp(5px, 1vw, 10px) clamp(5px, 1vw, 10px); 
	width: auto;
	height: auto;
}
.social-links i {
	font-size: clamp(1.2rem, 3vw, 3em);
}
