/* ============================================
   DOMINIK KORČÁK — Portfolio
   Inter font, Emerald accent, Slate base
   ============================================ */

html { scroll-behavior: smooth; }

/* --- Navigation --- */
.nav-transition {
	transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-link {
	color: rgba(255,255,255,0.75);
	transition: color 0.2s;
}
.nav-link:hover { color: #10b981; }

.nav-link-cta {
	color: #10b981;
	border: 1px solid rgba(16,185,129,0.4);
	transition: background 0.2s, border-color 0.2s;
}
.nav-link-cta:hover { background: rgba(16,185,129,0.1); }

.nav-scrolled {
	background: rgba(15, 23, 42, 0.96);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}

/* --- Hero decorative grid --- */
.hero-grid {
	background-image:
		linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* --- Animations --- */
@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes slideUp {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in  { animation: fadeIn  0.6s ease both; }
.animate-slide-up { animation: slideUp 0.7s ease both; }
.anim-delay-1 { animation-delay: 0.12s; }
.anim-delay-2 { animation-delay: 0.24s; }

/* --- Buttons --- */
.btn-primary {
	display: inline-block;
	background: #10b981;
	color: #fff;
	font-weight: 600;
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-primary:hover {
	background: #059669;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
	display: inline-block;
	border: 1.5px solid rgba(255,255,255,0.25);
	color: rgba(255,255,255,0.85);
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
	border-color: #10b981;
	color: #10b981;
	background: rgba(16,185,129,0.08);
}

/* --- Section helpers --- */
.section-tag {
	display: inline-block;
	background: #d1fae5;
	color: #059669;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.3rem 0.9rem;
	border-radius: 99px;
	margin-bottom: 1rem;
}
.section-heading {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

/* --- Cards (O mně) --- */
.card-glass {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 2rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-glass:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	border-color: #10b981;
}
.card-icon {
	width: 3rem;
	height: 3rem;
	background: #d1fae5;
	border-radius: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #059669;
	margin-bottom: 1.25rem;
	transition: background 0.2s, color 0.2s;
}
.card-glass:hover .card-icon {
	background: #10b981;
	color: #fff;
}

/* --- Project cards --- */
.project-card {
	display: block;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	padding: 2rem;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	border-color: #10b981;
}
.project-icon {
	width: 3rem;
	height: 3rem;
	background: #d1fae5;
	border-radius: 0.875rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #059669;
	transition: background 0.2s, color 0.2s;
}
.project-card:hover .project-icon {
	background: #10b981;
	color: #fff;
}
.project-logo-wrap {
	height: 40px;
	display: flex;
	align-items: center;
}
.project-logo {
	height: 36px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}
.project-tag {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-radius: 99px;
	transition: background 0.2s, color 0.2s;
}
.project-card:hover .project-tag {
	background: #d1fae5;
	color: #065f46;
}

/* --- Service cards --- */
.service-card {
	border: 1px solid #f1f5f9;
	border-radius: 1rem;
	padding: 1.5rem;
	background: #fafafa;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.service-card:hover {
	border-color: #d1fae5;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16,185,129,0.08);
}
.service-card h3 { transition: color 0.2s; }
.service-card:hover h3 { color: #059669; }

/* --- Contact info --- */
.contact-info-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
}
.contact-info-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	flex-shrink: 0;
	transition: background 0.2s, color 0.2s;
}
.contact-info-item:hover .contact-info-icon {
	background: #d1fae5;
	color: #059669;
}

/* --- Contact form --- */
.contact-form-wrapper {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.5rem;
	padding: 2.5rem;
	box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.4rem;
}
.form-input {
	width: 100%;
	border: 1.5px solid #e5e7eb;
	border-radius: 0.625rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	font-family: 'Inter', sans-serif;
	color: #111827;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}
.form-input:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.form-textarea { resize: vertical; min-height: 130px; }

.form-error {
	display: block;
	font-size: 0.8rem;
	color: #ef4444;
	margin-top: 0.25rem;
	min-height: 1.1rem;
	transition: opacity 0.2s;
}

.form-input.input-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-input.input-valid {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

/* --- Honeypot --- */
.hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
	pointer-events: none;
}

/* --- Flash messages --- */
.flash-success {
	background: #d1fae5;
	border: 1px solid #6ee7b7;
	color: #065f46;
}
.flash-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	color: #991b1b;
}
