body {
	background: var(--main-bg);
}


/* HEADER */

.header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.header__content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 17px 40px;
	user-select: none;
}

.header__content-logo {
	display: block;
	height: 52px;
	width: 52px;
	flex-shrink: 0;
	flex-grow: 0;
	transition: all 0.33s;
}

.header__content-logo:hover {
	transform: rotate(15deg);
}

.header__logo-img {
	max-height: 100%;
	max-width: 100%;
	border-radius: 16px;
}

.header__content-nav {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 55px;
}

.nav-link {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	position: relative;
	text-decoration: none;
	overflow: hidden;
	color: var(--black-color);
}

.nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0%;
	background-color: var(--anchor-color-hover);
	transition: none;
}

.nav-link:hover::after {
	animation: underline-in 0.4s forwards;
}

.nav-link:not(:hover)::after {
	animation: underline-out 0.4s forwards;
}

@keyframes underline-in {
	from {
		width: 0%;
	}
	to {
		width: 100%;
	}
}

@keyframes underline-out {
	from {
		width: 100%;
		left: 0%;
		opacity: 1;
	}
	to {
		width: 100%;
		left: 100%;
		opacity: 0;
	}
}

.nav-link__active {
	color: var(--blue-color);
}

.header__content-buttons {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 17px;
}

.header-button {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: var(--black-color);
	transition: all 0.4s;
}

.header-button:hover {
	color: var(--blue-color);
}

.header-button-icon {
	height: 32px;
	width: 32px;
	flex-shrink: 0;
	fill: var(--black-color);
	transition: all 0.4s;
}

.header-button-icon:hover {
	fill: var(--blue-color);
}


/* MAIN CONTENT */
.hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero__content {
	display: flex;
	flex-direction: column;
	margin: 40px;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 25px;
    padding: 20px;
    background-color: var(--black-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero__wrapper-titles {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--white-color);
}

.toggle-btn {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.code-container {
    margin-top: 20px;
    max-height: 500px;
    overflow-x: hidden !important;
    transition: all 0.5s ease;
}

.code-container.collapsed {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.code-display {
    background-color: #282a36;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--white-color);
    white-space: pre-wrap;
    tab-size: 4;
    overflow-x: auto;
}

.code-display .keyword {
    color: #ff79c6;
}

.code-display .string {
    color: #f1fa8c;
}

.code-display .function {
    color: #50fa7b;
}

.code-display .comment {
    color: var(--code-comment);
    font-style: italic;
}

.code-display .operator {
    color: #ff5555;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--white-color);
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* HOME BLOCK */
.home {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 40px;
	margin-bottom: 120px;
}

.home__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.home__content-title {
	grid-column: 1 / -1;
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 76px;
	text-align: center;
    color: var(--black-color);
}

.home__content-text-block {
	display: flex;
	flex-direction: column;
    gap: 20px;
	margin-bottom: 30px;
}

.home__content-text {
	font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
	color: var(--black-color);
}

.home__button {
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 13px 60px;
	border: 2px solid var(--black-color);
	transition: all 0.9s;
	border-radius: 0px;
	color: var(--black-color);
}

.home__button:hover {
	color: var(--blue-color);
	border-color: var(--blue-color);
	border-radius: 100px;
}

.home__content-right {
    justify-self: end;
}

.home__content-image {
    max-width: 100%;
    height: auto;
    display: block;
	pointer-events: none;
}




/* SKILLS BLOCK */
.skills {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 40px;
	margin-bottom: 120px;
}

.skills__content-title {
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 76px;
	text-align: center;
    color: var(--black-color);
	margin-bottom: 30px;
}

.skills__content-blocks {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
}

.skill-block {
	display: flex;
	flex-direction: row;
	padding: 20px;
	background-color: var(--black-color);
	border-radius: 20px;
	gap: 15px;
	justify-content: flex-start;
}

.skill__block-text {
	font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--white-color);
}

.skill__block-icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: var(--white-color);
	box-shadow: 0 0 10px var(--white-color);
	animation: pulse-glow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow {
	0% {
		transform: scale(1);
		box-shadow: 0 0 10px var(--white-color);
		opacity: 1;
	}
	50% {
		transform: scale(1.3);
		box-shadow: 0 0 20px var(--white-color), 0 0 40px var(--white-color);
		opacity: 0.8;
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 10px var(--white-color);
		opacity: 1;
	}
}



/* CONTACTS */
.contacts {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 30px 40px;
	margin-bottom: 120px;
}

.contacts__content-title {
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 76px;
	text-align: center;
    color: var(--black-color);
	margin-bottom: 30px;
}

.cblocks__content {
    display: grid;
    gap: 12px;
    align-items: center;
    margin: 0 auto;
}

.cblock-block {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background-color: var(--black-color);
    box-shadow: 0 0 16px rgba(0,0,0,0.2);
    overflow: hidden;
}

.cblock-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 17px 20px;
    gap: 15px;
}

.cblock-block__left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cblock-block-img {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex-shrink: 0;
}

.cblock-block-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 19px;
    color: var(--white-color);
    transition: color 0.3s ease;
}

.cblock-block-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: var(--white-color);
    transition: transform 0.3s ease;
}

.cblock-block__content {
	display: inline-flex;
	flex-direction: column;
	gap: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.05);
}

.cblock-block.active .cblock-block__content {
    max-height: 200px;
    padding: 0 20px 30px;
}

.cblock-block.active .cblock-block-text {
	color: var(--cyan-color);
}

.cblock-block.active .cblock-block-arrow {
    transform: rotate(180deg);
}

.cblock-block-details {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
	font-weight: 500;
    color: var(--white-color);
    margin: 15px 0 10px;
    opacity: 0.8;
}

.cblock-block-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 9px 23px;
	font-size: 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cblock-block-button:hover {
    background-color: #5a35e0;
}


/* FOOTER */
.footer-wrapper {
	margin: 20px 40px;
}

.footer {
	background-color: var(--black-color);
	border-radius: 20px;
}

.footer__content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 17px;
	width: 100%;
}

.footer__left {
	display: flex;
	flex-direction: row;
}

.footer-title {
	font-family: 'Montserrat', sans-serif;
    font-weight: 600;
	font-size: 18px;
	color: var(--white-color);
}

.footer__end {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 7px;
}

.footer-link {
	color: var(--cyan-color);
}

.footer__end-img {
	height: 36px;
	width: 36px;
	border-radius: 14px;
}


/* МОБИЛКА */
.mobile__nav {
	display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 25px;
    background: var(--white-color);
    border-top: 1px solid var(--black-color);
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.mobile__nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-link {
    display: flex;
    flex-direction: column;
	font-family: 'Montserrat', sans-serif;
    font-weight: 500;
	font-size: 14px;
    align-items: center;
    text-decoration: none;
    color: var(--black-color);
    transition: color 0.3s ease;
}

.mobile-link svg {
    width: 26px;
    height: 26px;
    margin-bottom: 3px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.mobile-link__active {
    color: var(--blue-color);
}

.mobile-link__active svg {
    fill: var(--blue-color);
}

.mobile-link:hover {
    color: var(--blue-color);
}
