/* ========================================
   TECHNOLOGIES PAGE STYLES - MOBILE FIRST
   ======================================== */

/* ========================================
   BASE STYLES (MOBILE)
   ======================================== */

/* Technologies Heading */
.technologies-heading {
	width: 100%;
	font-family: var(--font-family-primary);
	font-weight: 700;
	font-size: 20px;
	line-height: 110%;
	letter-spacing: -1%;
	text-align: left;
	text-wrap: nowrap;
	background: linear-gradient(90deg, #2b0548 0%, #680cae 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

/* Technologies Hero Section */
.technologies-hero {
	width: 100%;
	height: fit-content;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	background-color: var(--white-primary);
	gap: 1rem;
	padding: 1rem 0 2rem 0;
	margin-top: -1rem;
}

/* Technologies Main Content */
.technologies-main-content {
	width: 100%;
	height: 100%;
}

/* Technologies Heading Container */
.technologies-heading-container {
	width: 100%;
	padding: 0 0.25rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

/* ========================================
   PRESENTATION SECTION
   ======================================== */

/* Presentation Section */
.technologies-presentation-section {
	width: 100%;
	height: auto;
	/* min-height ustawiana dynamicznie przez JS */
	background-color: var(--white-primary);
	position: relative;
}

/* Presentation Gradient Container */
.presentation-gradient-container {
	min-height: 60vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background: var(--diamond-gradient);
	position: relative;
	z-index: 1;
	padding: 2rem 0;
}

.presentation-gradient-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('../assets/images/technologies-presentation-bg.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.03;
	z-index: 1;
}

.presentation-gradient-container > * {
	position: relative;
	z-index: 2;
}

/* Presentation Heading Container */
.presentation-heading-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100vw;
	gap: 0.3rem;
}

/* Presentation Heading */
.presentation-heading {
	width: 100%;
	color: var(--white-primary);
	font-family: var(--font-family-primary);
	font-weight: 700;
	text-align: left;
	font-size: clamp(12px, 4.5vw, 64px);
	line-height: 110.00000000000001%;
	letter-spacing: -1%;
	margin-left: 2rem;
}

/* Presentation Lead */
.presentation-lead {
	font-family: var(--font-family-primary);
	font-weight: 500;
	font-style: medium;
	font-size: clamp(10px, calc(10px + ((100vw - 320px) * 14 / 1600)), 24px);
	line-height: 150%;
	letter-spacing: -1.9%;
	text-align: left;
	width: 100%;
	color: var(--white-primary);
	padding: 0 0.9rem 0 0.9rem;
	margin-left: 0.5rem;
	white-space: break-spaces;
}

.presentation-lead-span {
	display: inline-block;
	margin-top: 0.5rem;
}

.anchor-span-container {
	width: 100%;
	max-width: 1600px;
	margin: 1.5rem auto 0;
	padding: 0 0.9rem 0 0.3rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

.anchor-span {
	padding: 0;
	margin: 0 0 0 0.5rem;
	font-family: var(--font-family-primary);
	font-weight: 500;
	font-style: medium;
	font-size: clamp(10px, calc(10px + ((100vw - 320px) * 14 / 1600)), 24px);
	line-height: 150%;
	letter-spacing: -1.9%;
	text-align: left;
	width: 100%;
	color: var(--white-primary);
	white-space: break-spaces;
}

.anchor-span-container .anchor-span > a {
	color: var(--primary-violet-light);
}

/* ========================================
   TECHNOLOGIES GRID
   ======================================== */

/* Technologies Grid */
.technologies-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin: 1rem 2rem 0 0;
	padding: 0 2px;
	max-width: 100%;
	z-index: 5;
	position: relative;
}

/* Technology Item */
.technology-item {
	background: linear-gradient(0deg, rgba(43, 5, 72, 0.6), rgba(43, 5, 72, 0.6)), linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
	border: 1px solid;
	border-image-source: linear-gradient(263.25deg, rgba(255, 255, 255, 0) 2.18%, #8a38f5 97.82%);
	backdrop-filter: blur(28.5px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 18px;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.3s ease;
	gap: 0.5rem;
}

.technology-item-icon {
width: 16px;
	height: 16px;
}

/* Active state - działa na wszystkich urządzeniach (touch i desktop) */
.technology-item:active {
	background: linear-gradient(0deg, rgba(65, 9, 107, 0.6), rgba(76, 9, 126, 0.6)), linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
}

.technology-item:active .technology-item-icon {
	transform: rotate(15deg) translateY(-2px) scale(0.9);
}

/* Hover - tylko dla urządzeń z myszką (desktop) */
@media (hover: hover) and (pointer: fine) {
	.technology-item:hover {
		background: linear-gradient(0deg, rgba(65, 9, 107, 0.6), rgba(76, 9, 126, 0.6)), linear-gradient(0deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
	}
	
	.technology-item:hover .technology-item-icon {
		transform: rotate(15deg) translateY(-3px) scale(0.9) !important;
	}
}

/* Technology Item Heading */
.technology-item-heading {
	color: var(--white-primary);
	font-family: var(--font-family-primary);
	font-weight: 600;
	font-style: semi-bold;
	font-size: clamp(12px, 2vw, 32px);
	line-height: 120%;
	letter-spacing: 0%;
}

/* ========================================
   GRID SCROLL ANIMATION
   ======================================== */

.technologies-page-container .contact-section {
	margin-top: 1rem;
}

/* ========================================
   TECHNOLOGIES CONTACT SECTION
   ======================================== */

.technologies-contact-section {
	width: 100%;
	background-color: var(--white-primary);
	padding: 0;
	margin: 0;
}

/* ========================================
   VIDEO SECTION
   ======================================== */

/* Technologies Video Container */
.technologies-video-container {
	width: 100%;
	height: 40vh;
	margin-top: 0;
	display: none;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

/* Technologies Video */
.technologies-video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover; /* Zachowuje proporcje i wypełnia kontener */
}

/* Small mobile devices - smaller padding */
@media (max-width: 375px) {
	.technologies-grid {
		gap: 0.2rem;
	}
	.technology-item {
		padding: 12px 15px;
	}

	.technologies-video-container {
		width: 100%;
		max-width: 100vw;
		height: 30vh;
	}

	.technologies-video {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
}

/* ========================================
   SCROLL CONTROL
   ======================================== */

/* Smooth scroll control is now handled by JavaScript without blocking the page */

/* ========================================
   TABLET STYLES (768px+)
   ======================================== */

@media (min-width: 768px) {
	.technologies-hero {
		min-height: auto;
		justify-content: flex-start;
		gap: 3rem;
		margin-top: 0;
		padding-top: 2rem;
		margin-bottom: 5rem;
	}

	.technologies-heading {
		font-size: 44px;
		margin-top: 0;
	}
	
	.technology-item-icon {
width: 20px;
	height: 20px;
}

	.technologies-heading-container {
		padding: 1rem 0 1rem 2.5rem;
	}

	.technologies-video {
		height: 300px; /* Wysokość dla tablet */
		object-fit: cover;
	}
}

/* ========================================
   DESKTOP STYLES (992px+)
   ======================================== */

@media (min-width: 992px) {
	.technologies-heading {
		font-size: 85px;
	}
	
	.technology-item-icon {
width: 25px;
	height: 25px;
}

	.technology-item {
		padding: 35px 48px;
		display: flex;
		justify-content: center;
		gap: 1rem;
	}

	.technologies-grid {
		margin: 0 auto;
		gap: 1rem;
		grid-template-columns: repeat(3, 1fr);
	}

	.presentation-lead {
		text-align: left;
		max-width: 1400px;
	}

	.anchor-span-container {
		max-width: 1400px;
	}

	.anchor-span {
		text-align: left;
		max-width: 1400px;
	}

	.technologies-video-container {
		height: fit-content;
	}

	.technologies-video {
		width: 100%;
		height: 55vh;
		object-fit: cover;
	}

	.presentation-gradient-container {
		min-height: 100vh;
	}
}

/* ========================================
   LARGE DESKTOP STYLES (1200px+)
   ======================================== */

@media (min-width: 1200px) {
	.technologies-hero {
		margin-bottom: 1rem;
	}
	.technologies-heading {
		font-size: 85px;
	}

	.technologies-contact-section {
		margin-top: 100px;
	}

	.technologies-heading-container {
		padding: 1rem 0 1rem 3.5rem;
	}

	.presentation-heading-container {
		margin: 0 0 4rem 0;
		padding-left: 3.5rem;
		gap: 1rem;
	}
	.presentation-lead {
		max-width: 1400px;
		white-space: break-spaces;
	}

	.technologies-grid {
		margin: 0 7.5rem 0 1rem;
	}

	.technologies-contact-section {
		padding: 0 1.5rem 0 2rem;
	}

	.anchor-span-container {
		width: 100%;
		max-width: 1600px;
		margin: 3rem auto 0;
		padding-left: 3.5rem;
	}
}

/* ========================================
   EXTRA LARGE DESKTOP STYLES (1400px+)
   ======================================== */

@media (min-width: 1400px) {
	.technologies-hero {
		padding: 0 0.5rem;
	}

	.technologies-heading {
		margin-bottom: 0;
	}

	.technologies-heading-container {
		padding: 1rem 0 4rem 3rem;
	}

	.presentation-heading-container {
		padding: 0 3rem 0 3.5rem;
		margin-bottom: 0;
	}

	.technologies-grid {
		max-width: 1400px;
		margin: 0 9rem 0 1rem;
		/* margin: 0 auto; */
		gap: 1.5rem;
	}

	.presentation-lead {
		padding-right: 5.5rem;
		margin-left: 0.7rem;
	}

	.anchor-span-container {
		padding-right: 5.5rem;
		padding-left: 4.25rem;
	}

	.anchor-span {
		margin-left: 0.7rem;
	}

	.technologies-video-container {
		width: 100%;
		max-width: 100vw;
		padding: 0 2.5rem 0 3rem;
	}

	.technologies-video {
		width: 100%;
		height: 50vh;
		object-fit: cover;
	}

	.technologies-contact-section {
		padding: 0;
	}
}

@media (min-width: 1800px) {
	.technologies-video {
		height: 70vh;
	}

	.presentation-heading-container {
		padding: 0 3rem 4rem 0;
		max-width: 1600px;
	}

	.presentation-gradient-container {
		min-height: 75vh;
	}

	.presentation-lead {
		max-width: 1600px;
		margin-left: 1rem;
	}

	.anchor-span-container {
		max-width: 1600px;
		padding-left: 0.5rem;
	}

	.anchor-span {
		max-width: 1600px;
		margin-left: 1rem;
	}

	.technologies-grid {
		margin-left: -7rem;
		gap: 2rem;
	}
	
	.technology-item-icon {
		width: 32px;
		height: 32px;
	}

	.technologies-heading-container {
		padding: 1rem 0 1rem 0;
	}
}
