/* Enhanced Tech Stack Logos Section */

/* Section Container */
.tech-section {
	padding: 4rem 0 !important;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
	position: relative !important;
	overflow: hidden !important;
}

/* Add subtle pattern background */
.tech-section::before {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.05) 0%, transparent 50%) !important;
	pointer-events: none !important;
}

/* Container Wrapper */
.tech-stack-wrapper {
	display: flex !important;
	align-items: center !important;
	gap: 3rem !important;
	position: relative !important;
	z-index: 2 !important;
}

/* Label Styling */
.tech-stack-label {
	font-size: 0.875rem !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	color: transparent !important;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	padding-right: 2rem !important;
	border-right: 2px solid rgba(102, 126, 234, 0.2) !important;
}

/* Slider Container */
.tech-stack-slider {
	display: flex !important;
	gap: 3rem !important;
	align-items: center !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	flex: 1 !important;
	padding: 1rem 0 !important;
	scroll-behavior: smooth !important;
	position: relative !important;
}

/* Hide scrollbar but keep functionality */
.tech-stack-slider::-webkit-scrollbar {
	height: 0 !important;
	display: none !important;
}

.tech-stack-slider {
	-ms-overflow-style: none !important;
	scrollbar-width: none !important;
}

/* Tech Item Container */
.tech-item {
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0.5rem !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative !important;
}

/* Logo Image Styling */
.tech-item img {
	height: 40px !important;
	width: auto !important;
	max-width: 120px !important;
	object-fit: contain !important;
	filter: grayscale(100%) opacity(0.6) !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	cursor: pointer !important;
}

/* Hover Effects */
.tech-item:hover img {
	filter: grayscale(0%) opacity(1) !important;
	transform: scale(1.15) translateY(-5px) !important;
}

/* Add glow effect on hover */
.tech-item::before {
	content: '' !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 100% !important;
	height: 100% !important;
	background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%) !important;
	opacity: 0 !important;
	transition: opacity 0.4s ease !important;
	pointer-events: none !important;
	border-radius: 50% !important;
	filter: blur(20px) !important;
	z-index: -1 !important;
}

.tech-item:hover::before {
	opacity: 1 !important;
}

/* Infinite Scroll Animation */
@keyframes scrollLogos {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Duplicate logos for infinite scroll effect */
.tech-stack-slider.animated {
	display: flex !important;
	animation: scrollLogos 30s linear infinite !important;
}

.tech-stack-slider.animated:hover {
	animation-play-state: paused !important;
}

/* Individual logo animations on page load */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tech-item {
	animation: fadeInUp 0.6s ease forwards !important;
	opacity: 0 !important;
}

.tech-item:nth-child(1) { animation-delay: 0.1s !important; }
.tech-item:nth-child(2) { animation-delay: 0.2s !important; }
.tech-item:nth-child(3) { animation-delay: 0.3s !important; }
.tech-item:nth-child(4) { animation-delay: 0.4s !important; }
.tech-item:nth-child(5) { animation-delay: 0.5s !important; }
.tech-item:nth-child(6) { animation-delay: 0.6s !important; }
.tech-item:nth-child(7) { animation-delay: 0.7s !important; }
.tech-item:nth-child(8) { animation-delay: 0.8s !important; }

/* Floating animation for individual logos */
@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.tech-item:hover {
	animation: float 2s ease-in-out infinite !important;
}

/* Responsive Design */
@media (max-width: 991px) {
	.tech-stack-wrapper {
		flex-direction: column !important;
		gap: 2rem !important;
	}
	
	.tech-stack-label {
		border-right: none !important;
		border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
		padding-right: 0 !important;
		padding-bottom: 1rem !important;
		width: 100% !important;
		text-align: center !important;
	}
	
	.tech-stack-slider {
		width: 100% !important;
		justify-content: center !important;
		flex-wrap: wrap !important;
		gap: 2rem !important;
		max-width: 100% !important;
		overflow-x: visible !important;
	}
	
	.tech-item img {
		height: 35px !important;
	}
}

@media (max-width: 767px) {
	.tech-section {
		padding: 3rem 0 !important;
	}
	
	.tech-stack-slider {
		gap: 1.5rem !important;
	}
	
	.tech-item img {
		height: 30px !important;
		max-width: 100px !important;
	}
}

/* Add gradient overlay on edges for scroll indication */
.tech-stack-wrapper::before,
.tech-stack-wrapper::after {
	content: '' !important;
	position: absolute !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 50px !important;
	z-index: 3 !important;
	pointer-events: none !important;
}

.tech-stack-wrapper::before {
	left: 0 !important;
	background: linear-gradient(to right, #f8f9fa, transparent) !important;
}

.tech-stack-wrapper::after {
	right: 0 !important;
	background: linear-gradient(to left, #f8f9fa, transparent) !important;
}

/* Special styling for specific logos if needed */
.tech-item img[alt="Flutter"] {
	height: 35px !important;
}

.tech-item img[alt="Firebase"] {
	height: 38px !important;
}

.tech-item img[alt="Ionic"] {
	height: 32px !important;
}

/* Tooltip on hover */
.tech-item {
	position: relative !important;
}

.tech-item::after {
	content: attr(data-tooltip) !important;
	position: absolute !important;
	bottom: -30px !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	background: rgba(0, 0, 0, 0.8) !important;
	color: white !important;
	padding: 5px 10px !important;
	border-radius: 4px !important;
	font-size: 12px !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease !important;
}

.tech-item:hover::after {
	opacity: 1 !important;
}