/* ==========================================
   HERO SECTION - sekcja główna z tłem
   ========================================== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 80px;
	padding: 4rem 5%;
	overflow: hidden;
	background: linear-gradient(135deg, #0a0e27 0%, #0d1829 50%, #0a0e27 100%);
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('https://images.unsplash.com/photo-1462331940025-496dfbfc7564?w=1800&q=80') center/cover;
	opacity: 0.35;
	filter: brightness(0.5);
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 14, 39, 0.7) 70%, rgba(10, 14, 39, 0.95) 100%);
}

/* Gwiazdki tło animowane */
.stars {
	position: absolute;
	width: 100%;
	height: 100%;
}

.star {
	position: absolute;
	width: 2px;
	height: 2px;
	background: #fff;
	border-radius: 50%;
	animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
	0%, 100% { opacity: 0.2; }
	50% { opacity: 1; }
}

/* Kosmiczne efekty świetlne */
.cosmic-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.4;
	animation: float 20s infinite ease-in-out;
}

.glow-1 {
	width: 600px;
	height: 600px;
	background: var(--cyan);
	top: -200px;
	left: -200px;
}

.glow-2 {
	width: 500px;
	height: 500px;
	background: var(--violet);
	bottom: -150px;
	right: -150px;
	animation-delay: -5s;
}

.glow-3 {
	width: 400px;
	height: 400px;
	background: var(--blue);
	top: 50%;
	left: 50%;
	animation-delay: -10s;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(50px, -50px) scale(1.1); }
	66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Zawartość hero */
.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 1100px;
}

.hero-badge {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background: rgba(0, 212, 255, 0.1);
	border: 2px solid rgba(0, 212, 255, 0.3);
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 2rem;
	color: var(--cyan);
}

.hero-title {
	font-size: clamp(2.5rem, 8vw, 5.5rem);
	font-weight: 900;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--violet) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 80px rgba(0, 212, 255, 0.5);
}

.hero-subtitle {
	font-size: clamp(1rem, 3vw, 1.4rem);
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 3rem;
	line-height: 1.6;
}

.hero-cta {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* ==========================================
   STATS - sekcja ze statystykami
   ========================================== */
.stats-section {
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(139, 0, 255, 0.05));
	border-radius: 20px;
	padding: 4rem 3rem;
	margin: 3rem 0;
	border: 2px solid rgba(0, 212, 255, 0.1);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3rem;
	text-align: center;
}

.stat-item {
	position: relative;
}

.stat-big-number {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 900;
	background: linear-gradient(135deg, var(--cyan), var(--violet));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.stat-label {
	color: rgba(255, 255, 255, 0.6);
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ==========================================
   projects GRID - siatka gier
   ========================================== */
.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.projects-card {
	position: relative;
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.1);
	border-radius: 15px;
	overflow: hidden;
	transition: all 0.3s;
	cursor: pointer;
}

.projects-card:hover {
	transform: translateY(-10px);
	border-color: var(--cyan);
	box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.projects-image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: all 0.3s;
}

.projects-card:hover .projects-image {
	transform: scale(1.1);
}

.projects-info {
	padding: 1.5rem;
}

.projects-badges {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.badge {
	padding: 0.3rem 0.8rem;
	background: rgba(0, 212, 255, 0.15);
	border-radius: 5px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--cyan);
	text-transform: uppercase;
}

.badge-soon {
	background: rgba(255, 102, 0, 0.15);
	color: #ff6600;
}

.projects-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 0.5rem;
	color: #fff;
}

.projects-description {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 1rem;
}

.projects-tech {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tech-badge {
	padding: 0.2rem 0.6rem;
	background: rgba(139, 0, 255, 0.15);
	border-radius: 3px;
	font-size: 0.7rem;
	color: var(--violet);
}

/* ==========================================
   FEATURES - sekcja z funkcjami/możliwościami
   ========================================== */
#features .section-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 5rem;
}

#features .section-header::before,
#features .section-header::after {
	content: '';
	flex: 1;
	height: 2px;
	max-width: 200px;
}

#features .section-header::before {
	background: linear-gradient(90deg, 
		transparent 0%, 
		rgba(255, 0, 150, 0.5) 100%
	);
}

#features .section-header::after {
	background: linear-gradient(90deg, 
		rgba(255, 0, 150, 0.5) 0%,
		transparent 100%
	);
}

#features .section-title {
	text-align: center;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 900;
	background: linear-gradient(90deg, 
		rgba(0, 212, 255, 1) 0%, 
		rgba(139, 0, 255, 1) 50%, 
		rgba(255, 0, 150, 1) 100%
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 2px;
	margin: 0;
	white-space: nowrap;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	margin-top: 2rem;
	position: relative;
}

.feature-card {
	background: rgba(10, 14, 39, 0.9);
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 15px;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
	border-color: rgba(0, 212, 255, 0.4);
}

.feature-title {
	font-size: 1.2rem;
	font-weight: 800;
	margin: 0;
	padding: 1rem 1rem;
	color: #fff;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	position: relative;
	text-align: center;
}

/* Gradient po skosie przez całą siatkę - 50% fioletu w środku */
/* Rząd 1 */
#feature-1 .feature-title {
	background: linear-gradient(120deg, rgba(0, 212, 255, 1) 0%, rgba(60, 160, 255, 0.9) 50%, rgba(100, 120, 255, 0.85) 100%);
}

#feature-2 .feature-title {
	background: linear-gradient(120deg, rgba(80, 140, 255, 0.85) 0%, rgba(130, 70, 255, 1) 50%, rgba(150, 50, 255, 0.95) 100%);
}

#feature-3 .feature-title {
	background: linear-gradient(120deg, rgba(130, 70, 255, 0.95) 0%, rgba(160, 40, 255, 1) 50%, rgba(180, 30, 240, 0.95) 100%);
}

#feature-4 .feature-title {
	background: linear-gradient(120deg, rgba(170, 40, 240, 0.9) 0%, rgba(210, 20, 200, 0.95) 50%, rgba(255, 0, 150, 1) 100%);
}

/* Rząd 2 - kontynuacja gradientu */
#feature-5 .feature-title {
	background: linear-gradient(120deg, rgba(0, 212, 255, 0.95) 0%, rgba(80, 140, 255, 0.9) 50%, rgba(120, 90, 255, 0.9) 100%);
}

#feature-6 .feature-title {
	background: linear-gradient(120deg, rgba(100, 110, 255, 0.9) 0%, rgba(140, 60, 255, 1) 50%, rgba(160, 40, 250, 0.95) 100%);
}

#feature-7 .feature-title {
	background: linear-gradient(120deg, rgba(140, 60, 255, 0.95) 0%, rgba(170, 35, 245, 1) 50%, rgba(200, 20, 220, 0.95) 100%);
}

#feature-8 .feature-title {
	background: linear-gradient(120deg, rgba(190, 30, 230, 0.95) 0%, rgba(220, 10, 190, 1) 50%, rgba(255, 0, 150, 1) 100%);
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
	border-color: rgba(0, 212, 255, 0.4);
}

.feature-description {
	padding: 1.5rem 2rem 2rem 2rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.7;
	font-size: 0.95rem;
	text-align: center;
}

/* ==========================================
   FAQ - sekcja z pytaniami
   ========================================== */
.faq-container {
	max-width: 900px;
	margin: 0 auto;
}

.faq-item {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.1);
	border-radius: 10px;
	margin-bottom: 1rem;
	overflow: hidden;
	transition: all 0.3s;
}

.faq-item.active {
	border-color: var(--cyan);
}

.faq-question {
	padding: 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	font-size: 1.1rem;
	transition: all 0.3s;
}

.faq-question:hover {
	color: var(--cyan);
}

.faq-icon {
	font-size: 1.5rem;
	color: var(--cyan);
	transition: transform 0.3s;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
	max-height: 500px;
}

.faq-answer-content {
	padding: 0 1.5rem 1.5rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.7;
}

/* ==========================================
   NEWSLETTER - zapis do newslettera
   ========================================== */
.newsletter-box {
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 0, 255, 0.1));
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 20px;
	padding: 3rem;
	text-align: center;
}

.newsletter-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.newsletter-title {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 1rem;
}

.newsletter-text {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
	font-size: 1.1rem;
}

.newsletter-form {
	display: flex;
	gap: 1rem;
	max-width: 500px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}

.newsletter-input {
	flex: 1;
	min-width: 250px;
	padding: 1rem 1.5rem;
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid rgba(0, 212, 255, 0.3);
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
}

.newsletter-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
	outline: none;
	border-color: var(--cyan);
}

/* ==========================================
   TEAM - sekcja z zespołem
   ========================================== */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.team-card {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.1);
	border-radius: 15px;
	padding: 2.5rem;
	text-align: center;
	transition: all 0.3s;
}

.team-card:hover {
	border-color: var(--cyan);
	transform: translateY(-10px);
	box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.team-icon {
	font-size: 4rem;
	margin-bottom: 1.5rem;
}

.team-name {
	font-size: 1.8rem;
	font-weight: 900;
	margin-bottom: 0.5rem;
	color: var(--cyan);
}

.team-role {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--violet);
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.team-description {
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
}

/* ==========================================
   OPEN SOURCE - sekcja z projektami OS
   ========================================== */
.opensource-box {
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(139, 0, 255, 0.05));
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 20px;
	padding: 3rem;
	text-align: center;
}

.opensource-icon {
	font-size: 5rem;
	margin-bottom: 1.5rem;
}

.opensource-title {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 1rem;
	color: var(--cyan);
}

.opensource-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.1rem;
	line-height: 1.7;
	margin-bottom: 2rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.stats-row {
	display: flex;
	justify-content: center;
	gap: 3rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.stat {
	text-align: center;
}

.stat-value {
	font-size: 2.5rem;
	font-weight: 900;
	background: linear-gradient(135deg, var(--cyan), var(--violet));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

/* ==========================================
   NEWS SECTION - aktualności na stronie głównej
   ========================================== */
.news-section {
	padding: 8rem 5%;
	background: var(--darker);
}

.news-container {
	max-width: 1400px;
	margin: 0 auto;
}

.news-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	margin-top: 4rem;
}

/* Featured News - duży */
.news-featured {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(0, 212, 255, 0.2);
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.news-featured:hover {
	border-color: var(--cyan);
	transform: translateY(-5px);
	box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.news-image {
	position: relative;
	height: 300px;
	overflow: hidden;
}

.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.news-featured:hover .news-image img {
	transform: scale(1.05);
}

.news-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	color: var(--dark);
	padding: 0.5rem 1.2rem;
	border-radius: 20px;
	font-weight: 800;
	font-size: 0.75rem;
	letter-spacing: 1px;
	box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
}

.news-content {
	padding: 2.5rem;
}

.news-date {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--cyan);
	margin-bottom: 1rem;
}

.news-title {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 1.5rem;
	color: #fff;
	line-height: 1.3;
}

.news-excerpt {
	font-size: 1rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 2rem;
}

/* News List - mniejsze po prawej */
.news-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.news-item {
	background: rgba(255, 255, 255, 0.02);
	border: 2px solid rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	padding: 2rem;
	transition: all 0.3s ease;
	cursor: pointer;
}

.news-item:hover {
	border-color: rgba(0, 212, 255, 0.3);
	background: rgba(255, 255, 255, 0.03);
	transform: translateX(5px);
}

.news-item-date {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: rgba(0, 212, 255, 0.7);
	margin-bottom: 0.8rem;
}

.news-item-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.8rem;
	line-height: 1.4;
}

.news-item-excerpt {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
	.news-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.news-title {
		font-size: 1.6rem;
	}
	
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	/* Hero sekcja mobile */
	.hero {
		margin-top: 70px;
		padding: 3rem 5%;
		min-height: 90vh;
	}

	.hero-badge {
		font-size: 0.75rem;
		padding: 0.4rem 1rem;
	}

	.hero-cta {
		flex-direction: column;
		gap: 1rem;
	}

	/* Stats grid mobile */
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* Features grid mobile */
	.features-grid {
		grid-template-columns: 1fr;
	}

	/* projects grid mobile */
	.projects-grid {
		grid-template-columns: 1fr;
	}

	.projects-info {
		padding: 1rem;
	}

	/* Team grid mobile */
	.team-grid {
		grid-template-columns: 1fr;
	}

	.team-card {
		padding: 1.5rem;
	}

	/* Stats row mobile */
	.stats-row {
		flex-direction: column;
		gap: 2rem;
	}

	.opensource-box {
		padding: 2rem 1.5rem;
	}

	/* Newsletter mobile */
	.newsletter-box {
		padding: 2rem 1.5rem;
	}

	.newsletter-form {
		flex-direction: column;
	}

	.newsletter-input {
		width: 100%;
		min-width: unset;
	}

	/* News section mobile */
	.news-section {
		padding: 5rem 5%;
	}

	.news-image {
		height: 250px;
	}

	.news-content {
		padding: 2rem 1.5rem;
	}

	.news-title {
		font-size: 1.4rem;
	}

	.news-excerpt {
		font-size: 0.95rem;
	}

	.news-item {
		padding: 1.5rem;
	}

	.news-item-title {
		font-size: 1rem;
	}
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
	.hero-title {
		font-size: 2rem;
	}

	.stat-big-number {
		font-size: 2rem;
	}

	.feature-card {
		padding: 1.5rem;
	}
}