@import url('https://fonts.googleapis.com/css2?family=Imprima&display=swap');

.skills-grid {
	gap: 12px !important;
}
.skills-grid .skill-label {
	margin-top: 0;
	font-size: 1rem;
	letter-spacing: 0.5px;
	font-family: 'Imprima', sans-serif;
}
.skills-grid .skill-item img {
	display: block;
	margin-bottom: 0;
}
.skills-grid .skill-item img {
	transition: transform 0.2s;
}
.skills-grid .skill-item:hover img {
	transform: scale(1.12);
}
.skills-grid .skill-item {
	transition: box-shadow 0.2s, background 0.2s;
	cursor: default;
	border-radius: 16px;
	padding: 16px;
}
.skills-grid .skill-item:hover {
	box-shadow: 0 0 0 6px rgba(0,0,0,0.10);
	background: #f3f3f3;
	border-radius: 16px;
}
.main-footer {
	background: linear-gradient(135deg, #1e223e 0%, #3a416f 100%);
	padding: 18px 0;
	text-align: center;
	margin-top: 48px;
	width: 100%;
	z-index: 10;
}
.footer-content {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
}
.footer-icon img {
	filter: drop-shadow(0 2px 6px rgba(30,60,114,0.18));
	transition: transform 0.2s;
}
.footer-icon img:hover {
	transform: scale(1.15);
}
.no-hover:hover {
	transform: none !important;
	z-index: auto !important;
}
.intro-block ~ .photo-square:hover,
.intro-block + .photo-square:hover {
	transform: none !important;
	z-index: auto !important;
}
.intro-block {
	background: #f7f8fa;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(30,60,114,0.08);
	padding: 32px 28px;
	max-width: 350px;
	font-family: 'Imprima', sans-serif;
}
.intro-block h2 {
	margin-top: 0;
	color: #1e223e;
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	font-family: 'Segoe UI', 'Arial', sans-serif;
}
.intro-block p {
	color: #333;
	font-size: 1.15rem;
	line-height: 1.6;
	margin-bottom: 0;
}
.photo-square {
	transition: transform 0.25s cubic-bezier(.4,2,.3,1);
}
.photo-square:hover {
	transform: scale(1.05);
	z-index: 2;
}
.photo-title {
	font-family: 'Imprima', sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: #1e223e;
	text-align: center;
	margin-bottom: 10px;
}
body {
	margin: 0;
	min-height: 100vh;
	padding-bottom: 90px;
	font-family: 'Imprima', sans-serif;
}
.photo-row {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin: 32px auto;
}
.photo-row .photo-square {
	position: static;
	left: auto;
}
.photo-row .photo-square:nth-child(2) {
	left: auto;
	z-index: auto;
}
.photo-row .photo-square:nth-child(3) {
	left: auto;
	z-index: auto;
}
.photo-square {
	width: 250px;
	height: 300px;
	background: #eee;
	border: 2px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	overflow: hidden;
}
.photo-square img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
header {
	background: #1e223e;
	color: #fff;
	padding: 36px 0 24px 0;
	text-align: center;
	box-shadow: 0 4px 16px rgba(30, 60, 114, 0.15);
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #1e223e 0%, #3a416f 100%);
}
header h1 {
	font-family: 'Imprima', sans-serif;
	font-size: 2.7rem;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: 2px;
	text-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
nav {
	margin-top: 18px;
}
nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 32px;
}
nav ul li {
	display: inline-block;
}
nav ul li a {
	color: #fff;
	text-decoration: none;
	font-size: 1.15rem;
	font-weight: 500;
	padding: 8px 18px;
	border-radius: 22px;
	transition: background 0.25s, color 0.25s, box-shadow 0.25s;
	position: relative;
	z-index: 1;
}
nav ul li a:hover, nav ul li a:focus {
	background: rgba(255,255,255,0.18);
	color: #ffe082;
	box-shadow: 0 2px 12px rgba(152, 77, 16, 0.18);
	outline: none;
}
header * {
	position: relative;
	z-index: 1;
}
.contact-section {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-section h2 {
    color: #1e223e;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-form {
    background: #f7f8fa;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(30,60,114,0.08);
    width: 100%;
    box-sizing: border-box;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e223e;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3a416f;
    box-shadow: 0 0 0 3px rgba(58, 65, 111, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    background: linear-gradient(135deg, #1e223e 0%, #3a416f 100%);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,60,114,0.2);
}
.submit-btn:active {
    transform: translateY(0);
}
img { max-width: 100%; height: auto; display: block; }
@media (max-width: 680px) {
	nav ul {
		flex-direction: column;
		gap: 8px;
	}
	nav ul li a {
		padding: 10px 14px;
	}

	header h1 { font-size: 2rem; }

	.photo-row { flex-direction: column; gap: 18px; margin: 20px auto; }
	.photo-row .photo-square { width: 100%; max-width: 420px; height: auto; }

	.skills-grid { grid-template-columns: repeat(2, 1fr) !important; }

	.intro-block { max-width: 100%; }
}
@media (min-width: 681px) and (max-width: 1024px) {
	.skills-grid { grid-template-columns: repeat(3, 1fr) !important; }
	.photo-row { gap: 20px; }
	.contact-section { margin: 48px auto; }
}
.contact-form { display: block; }
.contact-form .form-group { display: block; }
@media (max-width: 720px) {
	.main-footer {
		position: static;
		padding: 18px 0;
		margin-top: 32px;
	}
	body { padding-bottom: 0; }
}
@media (min-width: 1024px) {
	.main-footer {
		position: fixed;
		left: 0;
		bottom: 0;
	}
}
@media (min-width: 1025px) {
	.skills-grid { grid-template-columns: repeat(5, 1fr) !important; }
	.contact-section { max-width: 700px; }
	.contact-form { padding: 48px; }
}
.center-block { margin-left: auto; margin-right: auto; }