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

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Trebuchet MS", system-ui, sans-serif;
	background: #ffffff;
	line-height: 1.5;
	scroll-behavior: smooth;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	z-index: 1000;
}

.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.brand a {
	text-decoration: none;
	color: #000;
	font-weight: 600;
}

body.dark-theme .brand a {
	color: white;
}

.brand img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
}

.brand h1 {
	font-size: 2.5rem;
}

nav {
	position: relative;
}

#nav-links {
	list-style: none;
	display: flex;
	gap: 3rem;
	align-items: center;
}

#nav-links a {
	text-decoration: none;
	color: #000;
	font-weight: 600;
	transition: color 0.2s ease;
}

#nav-links a:hover {
	color: #555;
}

#nav-toggle {
	display: none;
	flex-direction: column;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
}

#nav-toggle .bar {
	width: 28px;
	height: 3px;
	background: #000;
	transition: transform 0.3s, opacity 0.3s;
}

#nav-toggle.open .bar:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

#nav-toggle.open .bar:nth-child(2) {
	opacity: 0;
}

#nav-toggle.open .bar:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.hero {
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 2rem;
}


.hero h2 {
	font-size: 2rem;
	max-width: 90%;
	text-align: center;
	min-height: 3.5rem;
}

.services-section {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 4rem;
	padding-block: 8rem;
	flex-wrap: wrap;
}

.services-left {
	max-width: 500px;
	display: flex;
	flex-direction: row;
	gap: 2rem;
	align-items: flex-start;
}

.services-right {
	flex: 1 1;
	max-width: 600px;
}

.services-right h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.services-right p {
	margin-bottom: 1rem;
	font-size: 1.05rem;
}

.service-block {
    width: 250px;
    height: 250px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.2rem;
	border-radius: 10px;
	box-shadow: 5px 10px 20px -5px rgba(0, 0, 0, 0.25);
	text-align: center;
	background: var(--bg);
}

.service-block img {
	width: 92px;
	height: 92px;
	margin-bottom: 10px;
}

.service-block p {
	font-family: "Trebuchet MS", system-ui, sans-serif;
	margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.2;
    max-width: 90%;
    word-break: break-word;
}

.service-block a {
	text-decoration: none;
}

.go-to-btn {
	font-family: "Trebuchet MS", system-ui, sans-serif;
	font-weight: 50;
	text-align: center;
	border-radius: 10px;
	background: #0b50b8;
	color: white;
	padding: 8px 1.2rem;
    font-size: 0.95rem;
	cursor: pointer;
	transition: box-shadow 0.3s ease-in-out;
}

.go-to-btn:hover {
	box-shadow: 5px 10px 20px -5px rgba(0, 0, 0, 0.25);
}

@media (max-width: 920px) {
	#nav-toggle {
		display: flex;
	}

	#nav-links {
		position: absolute;
		top: 100%;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 1.5rem 2rem;
		background: #ffffff;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);

		transform: translateX(100%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;

		transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
	}

	#nav-links.open {
		transform: translateX(0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.about-section {
		flex-direction: row;
		align-items: flex-start;
	}

	.about-right {
		justify-content: flex-start;
	}

	#nav-links {
		flex-direction: column;
	}

	.theme-switch-container {
		order: -1;
		align-self: stretch;
		margin-bottom: 1rem;
	}

	body.dark-theme #nav-toggle .bar {
		width: 28px;
		height: 3px;
		background: #fff;
		transition: transform 0.3s, opacity 0.3s;
	}

	#nav-toggle.open .bar:nth-child(1) {
		transform: translateY(9px) rotate(45deg);
	}

	#nav-toggle.open .bar:nth-child(2) {
		opacity: 0;
	}

	#nav-toggle.open .bar:nth-child(3) {
		transform: translateY(-9px) rotate(-45deg);
	}

	body.dark-theme #nav-links {
		background: #333333;
	}

	#contacts {
		margin-top: 16rem;
	}

	.contacts-grid {
		flex-direction: row;
		align-items: center;
		gap: 1rem;
	}

	.contact-item h4 {
		display: none;
	}

	.services-section {
		flex-direction: column-reverse;
		align-items: center;
	}

	.services-left,
	.services-right {
		max-width: 100%;
		text-align: center;
		align-items: center;
	}

	.services-right {
	    max-height: 300px;
	}

	.services-left {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

	.service-block {
		width: 210px;
		height: 250px;
		justify-content: center;   /* vertical centering */
        align-items: center;
	}

}

/* ░░ TYPING CURSOR ░░ */
.typing-text::after {
	content: "|";
	animation: blink 0.7s infinite;
	margin-left: 4px;
	color: black;
}

@keyframes blink {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0;
	}
}

.typing-text.done::after {
	content: "";
	animation: none;
}

/* ░░ ABOUT SECTION ░░ */
.about-section {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding-block: 8rem;
	height: 100vh;
}

.about-left {
	flex: 1 1 400px;
	max-width: 600px;
}

.about-left h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.about-left p {
	margin-bottom: 1rem;
	font-size: 1.1rem;
}

.about-right {
	flex: 1 1 300px;
	display: grid;
	grid-template-columns: repeat(2, 80px);
	grid-template-rows: repeat(2, 80px);
	gap: 1.5rem;
	justify-content: center;
}

.about-right img {
	width: 80px;
	height: 80px;
	object-fit: contain;

	opacity: 0;
	--y-offset: 30px;
	animation: fadeInUp 1s ease forwards;
	animation-delay: var(--delay);

	transition: transform 0.3s ease, box-shadow 0.3s ease;
	will-change: transform;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
	}
}

/* ░░ CONTAINER LAYOUT ░░ */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14rem 2rem;
}

.welcome-images {
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: center;
}


.welcome-images img {
	width: 80px;
	height: 80px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Triggered one by one */
.welcome-images img.show {
	opacity: 1;
	transform: translateY(0);
}

/* ░░ DARK THEME ░░ */
body.dark-theme {
	background: #121212;
	color: #ffffff;
}

body.dark-theme header {
	background: #1e1e1e;
}

body.dark-theme #nav-links a {
	color: #ffffff;
}

body.dark-theme #nav-links a:hover {
	color: #555;
}

body.dark-theme .about-left p {
	color: #ddd;
}

#theme-toggle {
	background: none;
	border: 1px solid #ccc;
	padding: 0.4rem 0.8rem;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.3s, color 0.3s;
	align-self: center;
}

body.dark-theme #theme-toggle {
	border-color: #666;
	color: #fff;
}

#nav-links button {
	background: transparent;
	border: 1px solid #444;
	border-radius: 6px;
	padding: 0.3rem 0.8rem;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
	transition: background 0.3s ease;
}

#nav-links button:hover {
	background: rgba(0, 0, 0, 0.1);
}

.contacts-grid {
	display: flex;
	justify-content: center;
	gap: 3rem;
	flex-wrap: wrap;
}

#contacts {
	height: 100vh;
	margin-top: 8rem;
}

#contacts h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	text-align: center;
}

.contact-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}

.contact-item img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.contact-item h4 {
	margin-top: 0.8rem;
	font-size: 1rem;
}

.contact-item:hover {
	transform: scale(1.05);
}

.container2 {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8rem 2rem;
}

body.dark-theme .inverted {
	filter: invert(100%);
}

body.dark-theme .service-block {
    border: 0.5px solid white;
}
