/* Вміст файлу styles.css, додано нові стилі для оновлених секцій */

/* Base Styles & Typography */
:root {
	/* Nueva paleta de colores */
	--primary-color: #3f51b5; /* Azul índigo - para encabezados, fondo del hero, footer */
	--secondary-color: #03a9f4; /* Azul cielo - para botones CTA, enlaces, énfasis */
	--accent-color: #ff9800; /* Naranja ámbar - para botones de acción importantes, hover */
	--light-bg: #e8f5e9; /* Verde menta muy claro - fondo general de secciones */
	--dark-bg: #263238; /* Azul oscuro casi negro - texto oscuro, algunos elementos de footer */
	--text-color: #424242; /* Gris oscuro - texto principal */
	--light-text: #ffffff; /* Blanco puro - texto sobre fondos oscuros */
	--border-color: #c5e1a5; /* Verde claro - para bordes sutiles */
	--shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Cabin', sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--light-bg);
}
img {
	width: 100%;
	max-width: 700px;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

h1,
h2,
h3 {
	color: var(--primary-color);
	line-height: 1.2;
	margin-bottom: 0.5em;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
}

h2 {
	font-size: 2rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 2em;
}

h3 {
	font-size: 1.5rem;
	font-weight: 600;
}

p {
	font-size: 1rem;
	margin-bottom: 1em;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: var(--secondary-color);
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent-color);
}

/* Header & Navigation */
header {
	background-color: #fff;
	padding: 1.5rem 0;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-logo a {
	font-size: 1.8rem;
	font-weight: bold;
	color: var(--primary-color);
}

.desktop-nav ul {
	list-style: none;
	display: flex;
	gap: 30px;
}

.desktop-nav a {
	font-weight: 500;
	color: var(--primary-color);
	padding: 5px 0;
	border-bottom: 2px solid transparent;
	transition: border-bottom 0.3s ease;
}

.desktop-nav a:hover {
	border-bottom-color: var(--secondary-color);
}

.mobile-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: var(--primary-color);
}

.mobile-nav {
	background-color: #fff;
	padding: 20px 0;
	text-align: center;
	border-top: 1px solid var(--border-color);
}

.mobile-nav ul {
	list-style: none;
}

.mobile-nav li {
	margin-bottom: 15px;
}

.mobile-nav a {
	display: block;
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--primary-color);
	padding: 10px;
}

/* Hero Section */
.hero-section {
	position: relative;
	background-color: var(--primary-color);
	color: var(--light-text);
	padding: 100px 0;
	overflow: hidden;
}

.hero-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../images/code-bg.jpg') no-repeat center center/cover;
	opacity: 0.15;
	z-index: 1;
}

.hero-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	position: relative;
	z-index: 2;
}

.hero-left {
	flex: 1;
}

.hero-left h1 {
	color: #fff;
	font-size: 3rem;
	margin-bottom: 0.5em;
}

.hero-left p {
	font-size: 1.2rem;
	margin-bottom: 2em;
	max-width: 600px;
}

.hero-right {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-right img {
	max-width: 500px;
	filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.cta-button {
	background-color: var(--accent-color);
	color: #fff;
	padding: 15px 30px;
	border-radius: 50px;
	font-weight: bold;
	display: inline-block;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
}

.cta-button:hover {
	background-color: #c0392b;
	transform: translateY(-3px);
}

/* Sections */
main section {
	padding: 80px 0;
}

.benefits-section,
.testimonials-section {
	background-color: #fff;
}

.benefits-grid,
.courses-grid,
.testimonials-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.benefit-card,
.course-card,
.testimonial-card {
	background-color: var(--light-bg);
	padding: 30px;
	border-radius: 10px;
	box-shadow: var(--shadow);
	text-align: center;
	transition: transform 0.3s ease;
}

.benefit-card:hover,
.course-card:hover {
	transform: translateY(-10px);
}

.benefit-card h3 {
	color: var(--secondary-color);
	margin-bottom: 10px;
}

.course-card {
	text-align: left;
	background-color: #fff;
}

.course-card img {
	border-radius: 8px;
	margin-bottom: 15px;
}

.course-card h3 {
	font-size: 1.4rem;
}

.course-card p {
	color: #555;
}

.testimonial-card {
	background-color: #f0f0f0;
	text-align: left;
	font-style: italic;
	border-left: 5px solid var(--secondary-color);
	padding: 25px;
}

.student-info {
	display: flex;
	align-items: center;
	margin-top: 15px;
}

.student-info img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	margin-right: 15px;
	object-fit: cover;
}

.student-info h4 {
	margin: 0;
	font-weight: 600;
}

.student-info span {
	font-size: 0.9rem;
	color: #777;
}

/* Contact Form Section */
.form-section {
	background: linear-gradient(
		135deg,
		#3f51b5,
		#607d8b
	); /* Градієнт з індиго-синього в синьо-сірий */
	color: var(--light-text);
	text-align: center;
}

.form-section h2 {
	color: #fff;
}

.form-section p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.1rem;
	margin-bottom: 3rem;
}

.form-section form {
	max-width: 600px;
	margin: 0 auto;
	background-color: #fff;
	padding: 40px;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.form-group {
	text-align: left;
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
	color: var(--text-color);
}

.form-group input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1rem;
}

.form-group input:focus {
	outline: none;
	border-color: var(--secondary-color);
}

.submit-button {
	width: 100%;
	background-color: var(--accent-color);
	color: #fff;
	border: none;
	padding: 15px;
	border-radius: 5px;
	font-size: 1.1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.submit-button:hover {
	background-color: #c0392b;
}

.form-message {
	margin-top: 20px;
	font-weight: bold;
	color: var(--secondary-color);
}

/* Footer */
footer {
	background-color: var(--primary-color);
	color: var(--light-text);
	padding: 40px 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
	color: #fff;
	margin-bottom: 15px;
}

.footer-info p {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.contact-info {
	margin-top: 20px;
}

.contact-info h4 {
	color: #fff;
	margin-bottom: 10px;
}

.contact-info a {
	color: #fff;
	text-decoration: underline;
}

.footer-nav h4,
.footer-policies h4 {
	color: #fff;
	margin-bottom: 15px;
}

.footer-nav ul,
.footer-policies ul {
	list-style: none;
}

.footer-nav li,
.footer-policies li {
	margin-bottom: 10px;
}

.footer-nav a,
.footer-policies a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
}

.footer-bottom p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Modals */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal-content {
	background-color: #fff;
	padding: 40px;
	border-radius: 10px;
	max-width: 500px;

	text-align: center;
	position: relative;
	box-shadow: var(--shadow);
}

.modal-content h2 {
	margin-bottom: 1em;
	text-align: center;
}

.modal-content p {
	margin-bottom: 1.5em;
	color: var(--text-color);
}

.modal-content button {
	background-color: var(--secondary-color);
	color: #fff;
	border: none;
	padding: 12px 25px;
	border-radius: 5px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.modal-content button:hover {
	background-color: var(--accent-color);
}

.hidden {
	display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.8rem;
	}
	.desktop-nav {
		display: none;
	}
	.mobile-nav-toggle {
		display: block;
	}
	.mobile-nav.visible {
		display: block;
	}
	.hero-content {
		flex-direction: column;
		text-align: center;
	}
	.hero-left {
		order: 2;
	}
	.hero-right {
		order: 1;
		margin-bottom: 30px;
	}
	.cta-button {
		padding: 12px 25px;
	}
	.benefits-grid,
	.courses-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}
	.footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-nav ul,
	.footer-policies ul {
		padding-left: 0;
	}
}

/* Додайте ці стилі в кінець вашого файлу styles.css */

.web3-section,
.smart-contracts-section {
	padding: 80px 0;
	background-color: var(--light-text);
}

.web3-content,
.smart-contracts-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
}

.web3-text,
.smart-contracts-text {
	flex: 1;
}

.web3-image,
.smart-contracts-image {
	flex: 1;
	display: flex;
	justify-content: center;
}

.web3-image img,
.smart-contracts-image img {
	max-width: 500px;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.web3-text h2,
.smart-contracts-text h2 {
	font-size: 2.2rem;
	text-align: left;
	margin-bottom: 0.7em;
	color: var(--primary-color);
}

.web3-text p,
.smart-contracts-text p {
	font-size: 1.1rem;
	margin-bottom: 1.5em;
	color: var(--text-color);
}

.link-more {
	font-weight: bold;
	color: var(--secondary-color);
	transition: color 0.3s ease;
}

.link-more:hover {
	color: var(--accent-color);
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
	.web3-content,
	.smart-contracts-content {
		flex-direction: column;
		text-align: center;
	}

	.web3-text,
	.smart-contracts-text {
		order: 2;
	}

	.web3-image,
	.smart-contracts-image {
		order: 1;
		margin-bottom: 30px;
	}

	.web3-text h2,
	.smart-contracts-text h2 {
		text-align: center;
	}
}
