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

body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	color: #333;
}

.section {
	padding: 60px 20px;
	margin-top: 90px;
	animation: fadeInDown 0.8s ease;
}

.section h2 {
	margin-top: 80px;
	text-align: center;
	font-size: 2.5em;
	color: #8b4513;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 40px;
}

.cards {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	justify-content: center;
	animation: fadeInUp 1s ease;
}

.card {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	width: 300px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.4s, box-shadow 0.4s;
	position: relative;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 108, 67, 0.1), transparent 70%);
	z-index: 0;
	transition: opacity 0.5s ease;
	opacity: 0;
}

.card:hover::before {
	opacity: 1;
}

.card:hover {
	transform: scale(1.06);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.card img {
	max-width: 100%;
	height: 200px;
	object-fit: cover;
	border-bottom: 1px solid #ddd;
	transition: transform 0.4s ease;
}

.card:hover img {
	transform: scale(1.08);
}

.card h3 {
	font-size: 20px;
	color: #444;
	margin: 15px 0 10px 0;
	z-index: 1;
	position: relative;
}

.card p {
	font-size: 15px;
	color: #777;
	margin-bottom: 15px;
	z-index: 1;
	position: relative;
}

/* Animacije ulaska */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 480px) {
	.section {
		padding: 20px 10px;
	}
	.section h2 {
		margin-top: 40px;
		font-size: 1.4em;
	}
	.cards {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 95%;
		padding: 10px;
	}
}

/* Mali telefoni (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
	.section {
		padding: 30px 15px;
	}
	.section h2 {
		margin-top: 50px;
		font-size: 1.6em;
	}
	.cards {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 90%;
	}
}

/* Tableti (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	.section {
		padding: 40px 30px;
	}
	.section h2 {
		margin-top: 80px;
		font-size: 1.8em;
	}
	.cards {
		justify-content: center;
	}
	.card {
		width: 45%;
	}
}

/* Desktop (1025px i više) */
@media (min-width: 1025px) {
	.section {
		padding: 50px 40px;
	}
	.section h2 {
		font-size: 2em;
	}
	.cards {
		justify-content: center;
	}
	.card {
		width: 300px;
	}
}
