/* === CodeWave Solutions - Modern 2025 Theme === */

:root {
	--bg-dark: #0f172a; /* Głęboki granat (tło główne) */
	--bg-card: #1e293b; /* Tło kart/sekcji alternatywnych */
	--text-main: #f8fafc; /* Biały tekst */
	--text-muted: #94a3b8; /* Szary tekst pomocniczy */
	--accent: #38bdf8; /* Jasny błękit (Electric Blue) */
	--accent-hover: #0ea5e9; /* Ciemniejszy błękit (hover) */
	--gradient: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
	--font-main: 'Montserrat', sans-serif;
	--container-width: 1200px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-dark);
	color: var(--text-main);
	font-family: var(--font-main);
	line-height: 1.6;
	overflow-x: hidden;
}

/* === UTILS === */
.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

h1,
h2,
h3 {
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.5rem;
}
h2 {
	font-size: 2rem;
	color: var(--accent);
}
p {
	margin-bottom: 1.5rem;
	color: var(--text-muted);
	font-size: 1.1rem;
}
a {
	text-decoration: none;
	transition: 0.3s;
	color: inherit;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
ul {
	list-style: none;
}

/* === NAVBAR === */
.navbar {
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(12px);
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding: 15px 0;
}

.navbar ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 30px;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.navbar a {
	font-weight: 500;
	color: var(--text-main);
	font-size: 0.95rem;
}

.navbar a:hover {
	color: var(--accent);
}

/* Przycisk Kontakt w menu */
.navbar li:last-child a {
	background: var(--gradient);
	color: #fff;
	padding: 10px 25px;
	border-radius: 50px;
	box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.navbar li:last-child a:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

/* === HERO SECTION === */
.hero {
	padding: 80px 0;
	display: flex;
	align-items: center;
	min-height: 80vh;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.hero-text h1 {
	font-size: 3.5rem;
	margin-bottom: 25px;
}

.hero-text span {
	background: var(--gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-btns {
	display: flex;
	gap: 20px;
	margin-top: 30px;
}

.btn {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 8px;
	font-weight: 600;
	text-align: center;
}

.btn-primary {
	background: var(--gradient);
	color: #fff;
	box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
	transform: translateY(-3px);
}

.btn-outline {
	border: 2px solid var(--accent);
	color: var(--accent);
}

.btn-outline:hover {
	background: var(--accent);
	color: #fff;
}

.hero-img img {
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* === SEKCJE TREŚCI (Services/About) === */
.section {
	padding: 80px 0;
}
.section-alt {
	background-color: var(--bg-card);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.feature-card {
	background: var(--bg-card);
	padding: 30px;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: 0.3s;
}

.feature-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent);
}

.feature-card i {
	font-size: 2rem;
	color: var(--accent);
	margin-bottom: 20px;
}

/* === GALERIA REALIZACJI (PREMIUM) === */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
}

.project-card {
	border-radius: 15px;
	overflow: hidden;
	position: relative; /* Ważne dla nakładki */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	aspect-ratio: 16/9;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.5s ease;
}

/* Efekt Zoomu zdjęcia */
.project-card:hover img {
	transform: scale(1.1);
}

/* NAKŁADKA (OVERLAY) - To robi robotę! */
.project-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.85); /* Ciemne tło półprzezroczyste */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0; /* Domyślnie ukryte */
	transition: opacity 0.3s ease;
	text-align: center;
	padding: 20px;
}

/* Pokazanie nakładki po najechaniu */
.project-card:hover .project-overlay {
	opacity: 1;
}

.project-title {
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	margin-bottom: 10px;
}

.project-category {
	color: var(--accent);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	transform: translateY(20px);
	transition: transform 0.3s 0.1s; /* Lekkie opóźnienie */
	margin-bottom: 20px;
}

/* Animacja wjazdu tekstu */
.project-card:hover .project-title,
.project-card:hover .project-category {
	transform: translateY(0);
}

/* Mały przycisk na overlayu */
.btn-small {
	padding: 8px 20px;
	border: 1px solid var(--accent);
	color: var(--accent);
	border-radius: 20px;
	font-size: 0.85rem;
	transition: 0.3s;
	background: transparent;
}

.btn-small:hover {
	background: var(--accent);
	color: #fff;
}

/* === CTA SECTION === */
.cta-section {
	text-align: center;
	padding: 100px 0;
	background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('images/mainpage2.webp');
	background-size: cover;
	background-attachment: fixed;
}

/* === FOOTER === */
footer {
	background: #020617;
	padding: 50px 0;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === RESPONSYWNOŚĆ (Mobile - Główne) === */
@media (max-width: 768px) {
	.hero-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.hero-text h1 {
		font-size: 2.2rem;
	}
	.hero-btns {
		justify-content: center;
	}
	.navbar ul {
		justify-content: center;
		gap: 15px;
		flex-wrap: wrap;
	}
	.feature-card {
		text-align: center;
	}
	.navbar li:last-child a {
		width: 100%;
		display: block;
		text-align: center;
	}
}

/* === DODATEK DLA PODSTRON (Fix layoutu) === */

/* Układ Zygzakowaty */
.feature-row {
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 40px 0;
}

.feature-row.reverse {
	flex-direction: row-reverse;
}

.feature-text {
	flex: 1;
}
.feature-img {
	flex: 1;
}

.feature-img img {
	width: 100%;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === NAPRAWA LISTY (To naprawia rozjeżdżanie się tekstu) === */
.feature-text ul li {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 20px;
}

.list-icon {
	flex-shrink: 0;
	width: 24px;
	color: var(--accent);
	font-size: 1.2rem;
	margin-top: 2px;
}

.list-text {
	flex: 1;
	font-size: 1rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.list-text strong {
	color: #fff;
	font-weight: 700;
	display: inline;
	margin-right: 5px;
}

/* Fix dla strony Kontakt */
.contact-buttons-container {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 30px;
	margin-bottom: 50px;
}

/* Dostosowanie mobilne dla podstron */
@media (max-width: 768px) {
	.feature-row,
	.feature-row.reverse {
		flex-direction: column;
		gap: 30px;
	}
	.feature-img {
		order: -1;
	}
}
