/*
Theme Name: Elliot Dziemiela
Theme URI: http://localhost/elliotdziemiela
Description: A dark, sleek software engineering portfolio theme with blue accents.
Version: 1.0.0
Author: Elliot Dziemiela
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elliotdziemiela
*/

/* ============================================
   GLOBAL
   ============================================ */

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	background-color: #0d1117;
	color: #e6edf3;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	margin: 0;
	overflow-x: hidden;
}

a {
	color: #3b82f6;
	transition: color 0.2s ease;
}

a:hover {
	color: #60a5fa;
}

h1, h2, h3, h4, h5, h6 {
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(13, 17, 23, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid #30363d;
}

.site-header a {
	text-decoration: none;
	color: #e6edf3;
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
}

.site-title:hover {
	color: #60a5fa;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
}

.site-nav a {
	font-size: 0.95rem;
	font-weight: 500;
	color: #e6edf3;
	transition: color 0.2s ease;
}

.site-nav a:hover {
	color: #60a5fa;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.portfolio-hero {
	text-align: center;
	padding: 5rem 2rem 3rem;
	position: relative;
	overflow: hidden;
}

.portfolio-hero::before {
	content: "";
	position: absolute;
	top: -50%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
	pointer-events: none;
}

.portfolio-hero h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin-bottom: 1rem;
	position: relative;
}

.portfolio-hero p {
	color: #8b949e;
	font-size: 1.15rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

/* ============================================
   PROJECT SECTIONS — 3 Alternating Styles
   ============================================ */

.project-section {
	padding: 3rem 2rem;
	margin: 2rem auto;
	max-width: 1200px;
	border-radius: 12px;
	transition: transform 0.2s ease;
}

.project-section:hover {
	transform: translateY(-2px);
}

.project-section h2 {
	font-size: 1.75rem;
	margin-bottom: 1.5rem;
	color: #ffffff;
}

.project-section .project-description {
	color: #8b949e;
	font-size: 1.05rem;
	line-height: 1.7;
	margin-top: 1.5rem;
}

/* Style A: Left accent border on dark surface */
.project-section:nth-child(3n + 1 of .project-section) {
	background: #161b22;
	border-left: 4px solid #3b82f6;
}

/* Style B: Gradient background fade */
.project-section:nth-child(3n + 2 of .project-section) {
	background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, #161b22 40%, #161b22 100%);
	border: 1px solid #30363d;
}

/* Style C: Bordered with glow */
.project-section:nth-child(3n of .project-section) {
	background: #0d1117;
	border: 1px solid #30363d;
	box-shadow: 0 0 30px rgba(59,130,246,0.06), 0 4px 20px rgba(0,0,0,0.3);
}

/* Fallback for browsers without :nth-child(An+B of S) */
@supports not selector(:nth-child(1 of .x)) {
	.project-section:nth-child(odd) {
		background: #161b22;
		border-left: 4px solid #3b82f6;
	}
	.project-section:nth-child(even) {
		background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, #161b22 40%, #161b22 100%);
		border: 1px solid #30363d;
	}
}

/* ============================================
   CAROUSEL
   ============================================ */

.project-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #0d1117;
	margin-bottom: 1rem;
}

.carousel-track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
	min-width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
	max-width: 100%;
	height: auto;
	display: block;
}

.carousel-slide .placeholder-slide {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	color: #8b949e;
	background: #161b22;
	border: 1px dashed #30363d;
}

/* Carousel controls */
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(13, 17, 23, 0.8);
	border: 1px solid #30363d;
	color: #e6edf3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 2;
}

.carousel-btn:hover {
	background: rgba(59, 130, 246, 0.3);
	border-color: #3b82f6;
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

/* Carousel dots */
.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0.75rem 0;
}

.carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #30363d;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.carousel-dot.active {
	background: #3b82f6;
	transform: scale(1.3);
}

/* ============================================
   FRONT PAGE
   ============================================ */

.front-hero {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 2rem;
	position: relative;
}

.front-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 800px;
	background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 60%);
	pointer-events: none;
}

.front-hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	margin-bottom: 1rem;
	position: relative;
}

.front-hero .subtitle {
	color: #8b949e;
	font-size: 1.25rem;
	max-width: 600px;
	position: relative;
}

.portfolio-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem;
}

.portfolio-card {
	background: #161b22;
	border: 1px solid #30363d;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	text-decoration: none !important;
	color: #e6edf3 !important;
	transition: all 0.3s ease;
	display: block;
}

.portfolio-card:hover {
	border-color: #3b82f6;
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(59,130,246,0.15);
}

.portfolio-card h2 {
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
}

.portfolio-card p {
	color: #8b949e;
	font-size: 0.95rem;
}

.card-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
	border-top: 1px solid #30363d;
	padding: 2rem;
	text-align: center;
	color: #8b949e;
	font-size: 0.875rem;
	margin-top: 4rem;
}

.footer-icons {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.footer-icon-link img {
	width: 32px;
	height: 32px;
	opacity: 0.7;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-icon-link:hover img {
	opacity: 1;
	transform: scale(1.15);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 2rem;
}

.error-404 h1 {
	font-size: 6rem;
	color: #3b82f6;
	margin-bottom: 0.5rem;
	line-height: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.project-section {
		padding: 2rem 1.25rem;
		margin: 1.5rem 1rem;
	}

	.portfolio-hero {
		padding: 3rem 1.5rem 2rem;
	}

	.front-hero {
		min-height: 50vh;
		padding: 3rem 1.5rem;
	}

	.portfolio-cards {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.carousel-btn {
		width: 34px;
		height: 34px;
		font-size: 0.9rem;
	}
}
