/* RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	background-color: #181717;
	color: white;
	font-size: 16px;
}

/* HEADER */

.hero {
	background-image: url('../img/important/background.jpg');
	background-size: cover;
	background-position: center;
	height: 40vh;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	position: relative;
}

.hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-size: 3rem;
	font-weight: bold;
}

.hero p {
	font-size: 1.2rem;
	margin-top: 10px;
}

/* NAVBAR */

.navbar {
	background: #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 30px;
	position: sticky;
	top: 0;
	z-index: 10;
}

/* LOGO + TEXT */

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
}
.logo-img {
	height: 30px;
	width: auto;
}

/* LINKS */

.nav-links {
	list-style: none;
	display: flex;
	gap: 20px;
}

.nav-links li a {
	text-decoration: none;
	color: white;
	font-weight: bold;
	transition: color 0.3s;
}

.nav-links li a:hover {
	color: #8eb9f8;
}

/* DROPDOWN */

.dropdown {
	position: relative;
}
.dropdown-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #444;
	display: none;
	flex-direction: column;
	min-width: 190px;
	border-radius: 5%;
}
.dropdown-menu li a {
	padding: 10px;
	display: block;
	color: white;
}
.dropdown-menu li a:hover {
	background: #555;
	border-radius: 5%;
}

.dropdown:hover .dropdown-menu {
	display: flex;
}

/* HAMBURGER */

.burger {
	display: none;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
}
.burger div {
	width: 25px;
	height: 3px;
	background: white;
}

/* RESP */

@media (max-width: 768px) {
	.nav-links {
		position: absolute;
		right: 0;
		top: 60px;
		height: 0;
		overflow: hidden;
		background: #333;
		flex-direction: column;
		width: 100%;
		text-align: center;
		transition: height 0.3s ease-in-out;
	}

	.nav-links.active {
		height: 300px;
	}

	/* DROPDOWN ON MOBILE */

	.dropdown-menu {
		position: static;
		display: none;
		background: #333;
	}
	.dropdown.open .dropdown-menu {
		display: flex;
	}

	.burger {
		display: flex;
	}
}

/* SECTION - NORMAL */

.section {
	padding: 60px 20px;
	background: #222;
	color: white;
}

.section.alt {
	background-image: url(../img/important/background-alt.jpg);
	position: relative;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	border-top: 5px solid #181717;
	border-bottom: 5px solid #181717;
}

.section h2 {
	text-align: center;
	margin-bottom: 20px;
	font-size: 2rem;
	color: #e0f2f8;
}

.section p {
	max-width: 800px;
	margin: 0 auto 20px;
	text-align: center;
	line-height: 1.6;
}

.container {
	max-width: 1100px;
	margin: auto;
}

/* CAMERA LIVE */

.embed {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}
.embed iframe {
	width: 100%;
	max-width: 800px;
	height: 450px;
	border-radius: 10px;
	overflow: hidden;
}

/* BUTTON */

.btn {
	display: block;
	background: #8eb9f8;
	color: white;
	padding: 12px 25px;
	border-radius: 25px;
	text-decoration: none;
	font-weight: bold;
	transition: background 0.3s;
	margin: 0 auto;
	width: fit-content;
}

.btn:hover {
	background: #587baf;
}

.btn svg {
	vertical-align: middle;
	margin-left: 4px;
}

.project-boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	padding: 20px;
}

.project-box {
	flex: 1 1 300px;
	max-width: 30%;
	min-height: 220px;
	border: 3px solid white;
	border-radius: 15px;
	background: #333;
	color: white;
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	transition: transform 0.3s, background 0.3s;
}

.project-box:hover {
	transform: scale(1.05);
	background: #8eb9f827;
}

/* BOXY */

.project-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.project-header h3 {
	font-size: 1rem;
	margin: 0;
}

.window-icons {
	height: 50px;
	cursor: default;
	user-select: none;
}

.project-box p {
	font-size: 0.9rem;
	line-height: 1.4;
	margin-top: 10px;
	text-align: left;
}

@media (max-width: 992px) {
	.project-box {
		max-width: 45%;
	}
}
@media (max-width: 600px) {
	.project-box {
		max-width: 100%;
	}
}

/* FOOTER */

.footer {
	background: #1b1b1b;
	color: #ddd;
	padding: 40px 20px 20px;
	font-size: 0.95rem;
}

.footer-top {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	max-width: 1100px;
	margin: auto;
	gap: 40px;
}

.footer-left,
.footer-center,
.footer-right {
	flex: 1;
	min-width: 220px;
}

.footer-logo {
	width: 120px;
	margin-bottom: 10px;
}

.footer-desc {
	margin: 10px 0 20px;
	font-size: 0.9rem;
	color: #aaa;
}

.footer-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: #8eb9f8;
	color: #fff;
	font-weight: bold;
	border-radius: 25px;
	text-decoration: none;
	transition: background 0.3s, transform 0.2s;
}
.footer-btn:hover {
	background: #587baf;
	transform: translateX(3px);
}

.footer-center h4,
.footer-right h4 {
	margin-bottom: 12px;
	color: #8eb9f8;
	font-size: 1.2rem;
	border-bottom: 2px solid #537dbd;
	display: inline-block;
	padding-bottom: 4px;
}

.footer-center ul {
	list-style: none;
	padding: 0;
}
.footer-center ul li {
	margin: 6px 0;
}
.footer-center ul li a {
	color: #bbb;
	text-decoration: none;
	transition: color 0.3s;
}
.footer-center ul li a:hover {
	color: #8eb9f8;
}

/* --- SOCIAL ICONS --- */
.socials {
	display: flex;
	justify-content: space-between;
}

.socials-left,
.socials-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.socials a {
	color: #bbb;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.3s;
}
.socials a:hover {
	color: #8eb9f8;
}

.footer hr {
	border: none;
	border-top: 1px solid #333;
	margin: 20px auto;
	max-width: 1100px;
}

.footer-bottom {
	text-align: center;
	font-size: 0.85rem;
	color: #888;
}
.footer-bottom p {
	margin: 5px 0;
}

/* --- RESP --- */

@media (max-width: 768px) {
	.footer-top {
		flex-direction: column;
		text-align: center;
	}
	.footer-left,
	.footer-center,
	.footer-right {
		min-width: 100%;
	}
	.footer-btn {
		justify-content: center;
	}
	.footer-right {
		text-align: center;
	}
	.socials {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}
	.socials-left,
	.socials-right {
		flex-direction: column;
		align-items: center;
	}
}

/* CONTACT */

.contact-form {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	background-color: #1f1f1f;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
	margin-bottom: 25px;
	position: relative;
}

.field-title {
	display: block;
	margin-bottom: 6px;
	font-size: 18px;
	font-weight: 600;
	color: #8eb9f8;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 14px;
	border: 1.5px solid #888888;
	background-color: #2b2b2b;
	border-radius: 8px;
	outline: none;
	font-size: 16px;
	color: white;
	caret-color: white;
	transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: #587baf;
	box-shadow: 0 0 8px #587baf;
	background-color: #333333;
}

/* BTN */
.btn {
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	background: #8eb9f8;
	color: white;
	cursor: pointer;
	font-size: 16px;
	transition: 0.3s;
	margin-top: 10px;
}

.btn:hover {
	background: #587baf;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* RESP */
@media (max-width: 650px) {
	.contact-form {
		padding: 15px;
	}
	.field-title {
		font-size: 16px;
	}
}

/* POPUP */

.popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	min-width: 300px;
	max-width: 90%;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	font-size: 16px;
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	transition: all 0.3s ease;
}

.popup.show {
	display: block;
}

.popup.success {
	background-color: #66ca69;
}

.popup.error {
	background-color: #f15145;
}

#closePopup {
	margin-top: 10px;
	background: transparent;
	border: none;
	gap: 5px;
	font-size: 18px;
	color: #fff;
	cursor: pointer;
}

/* RADAR */

#map {
	height: 70vh;
	min-height: 480px;
	width: 90%;
	border-radius: 16px;
	border: 5px solid #95bfffb4;
	overflow: hidden;
	left: 5%;
	z-index: 1;
}

.leaflet-control-attribution {
	font-size: 11px;
}

.hero-radar {
	background-image: url('../img/important/radar_background.jpg');
	background-size: cover;
	background-position: 0 89%;
	height: 40vh;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	position: relative;
}

/* BADGE - WKRÓTCE */

.nav-links li {
	position: relative;
}

.badge {
	position: absolute;
	top: -8px;
	right: -18px;

	background: #e74c3c;
	color: white;
	font-size: 10px;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 6px;

	transform: rotate(10deg);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	.nav-links li {
		width: 100%;
	}

	.badge {
		top: 8px;
		right: 16px;
		transform: rotate(0);
	}
}
