/* Reset & Variables */
:root {
	--primary-color: #2563eb;
	--secondary-color: #1e40af;
	--text-color: #1f2937;
	--bg-color: #f3f4f6;
	--white: #ffffff;
	--font-main: 'Inter', sans-serif;
	--transition: all 0.5s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	color: var(--text-color);
	background-color: var(--bg-color);
	line-height: 1.6;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

/* Hero Section */
#hero {
	position: relative;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.slides-container {
	display: flex;
	width: 300%;
	/* 3 slides */
	height: 100%;
	transition: transform 1s ease-in-out;
}

/* Slide Styles */
.slide {
	width: 33.333%;
	/* 1/3 of container */
	height: 100%;
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Intro Slide Specifics */
.slide[data-type="intro"] {
	background-color: var(--white);
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Intro Text Animation */
.intro-text {
	font-size: 3rem;
	font-weight: 700;
	color: var(--text-color);
	display: flex;
	gap: 0.5rem;
	justify-content: center;
}

.intro-text span {
	opacity: 0;
	transform: translateX(-20px);
	display: inline-block;
}

.slide.active .intro-text span {
	animation: slideInWord 0.5s ease-out forwards;
}

.slide.active .intro-text span:nth-child(1) {
	animation-delay: 0.2s;
}

.slide.active .intro-text span:nth-child(2) {
	animation-delay: 0.4s;
}

.slide.active .intro-text span:nth-child(3) {
	animation-delay: 0.6s;
}

.slide.active .intro-text span:nth-child(4) {
	animation-delay: 0.8s;
}

.slide.active .intro-text span:nth-child(5) {
	animation-delay: 1.0s;
}

.slide.active .intro-text span:nth-child(6) {
	animation-delay: 1.2s;
}

@keyframes slideInWord {
	0% {
		opacity: 0;
		transform: translateX(-20px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Navigation Arrows */
.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: var(--white);
	font-size: 2rem;
	padding: 20px;
	cursor: pointer;
	z-index: 10;
	transition: background 0.3s ease, opacity 0.3s ease;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	/* Hidden by default */
	pointer-events: none;
}

.nav-arrow.visible {
	opacity: 1;
	pointer-events: auto;
}

.nav-arrow:hover {
	background: rgba(255, 255, 255, 0.4);
}

.nav-arrow.prev {
	left: 20px;
}

.nav-arrow.next {
	right: 20px;
}

/* Navigation */
#nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	opacity: 0;
	transform: translateY(-100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#nav.visible {
	opacity: 1;
	transform: translateY(0);
}

#nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 1rem 0;
	gap: 2rem;
}

#nav ul li {
	margin: 0;
}

#nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.3s ease;
	position: relative;
}

#nav ul li a:hover {
	color: var(--primary-color);
}

#nav ul li a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color);
	transition: width 0.3s ease;
}

#nav ul li a:hover::after {
	width: 100%;
}

/* Footer */
#footer {
	padding: 20px 0;
	text-align: center;
	background-color: #f3f4f6;
}

.copyright {
	list-style: none;
	font-size: 0.9rem;
	color: #6b7280;
}

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

/* Sections */
section {
	padding: 4rem 0;
}

/* Alternating Section Backgrounds */
section:nth-child(even):not(#hero):not(#footer) {
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
}

/* section:nth-child(odd):not(#hero):not(#footer) {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
} */

section h3 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: var(--secondary-color);
	text-align: center;
}

section p {
	margin-bottom: 2rem;
	color: var(--text-color);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Feature Icons (Skills) */
.feature-icons {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	padding: 0;
}

.feature-icons li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem;
	background: var(--white);
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
}

.feature-icons li:hover {
	transform: translateY(-5px);
}

.feature-icons li i {
	font-size: 3rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

/* Icons */

ul.icons {
	cursor: default;
	list-style: none;
	padding-left: 0;
}

ul.icons li {
	display: inline-block;
	padding: 0 1em 0 0;
}

ul.icons li:last-child {
	padding-right: 0 !important;
}

ul.icons li .icon:before {
	font-size: 1.25em;
}

/* Projects (.features) */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.features article {
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.features article:hover {
	transform: translateY(-5px);
}

.features .image {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

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

.features article:hover .image img {
	transform: scale(1.05);
}

.features .inner {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.features h4 {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--secondary-color);
}

.features p {
	font-size: 0.95rem;
	color: #4b5563;
	text-align: left;
	margin-bottom: 1rem;
}

/* Contact */
.contact-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	margin-top: 1rem;
}

.contact-avatar {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border: 5px solid var(--white);
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact-info p {
	margin: 0;
	text-align: left;
}

.contact-link {
	font-size: 1.5rem;
	color: var(--primary-color);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: left;
	width: 100%;
	transition: color 0.3s ease;
}

.contact-link:hover {
	color: var(--secondary-color);
}

/* Privacy (#five) */
#five {
	background-color: var(--white);
	text-align: left;
}

#five h4 {
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	color: var(--text-color);
}

#five p {
	text-align: left;
	margin-bottom: 1rem;
}

/* Responsive Design */

/* Tablet and below */
@media screen and (max-width: 980px) {
	.intro-text {
		font-size: 2.5rem;
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.nav-arrow {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}

	#nav ul {
		gap: 1.5rem;
		padding: 0.8rem 0;
	}

	#nav ul li a {
		font-size: 0.9rem;
	}
}

/* Mobile */
@media screen and (max-width: 736px) {
	.intro-text {
		font-size: 1.8rem;
		flex-direction: column;
		gap: 0.3rem;
		text-align: center;
	}

	.nav-arrow {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
		padding: 10px;
	}

	.nav-arrow.prev {
		left: 10px;
	}

	.nav-arrow.next {
		right: 10px;
	}

	#nav ul {
		flex-wrap: wrap;
		gap: 1rem;
		padding: 0.6rem 0.5rem;
	}

	#nav ul li a {
		font-size: 0.85rem;
	}

	section {
		padding: 3rem 0;
	}

	.container {
		padding: 0 1.5rem;
	}

	section h3 {
		font-size: 1.5rem;
	}

	.feature-icons {
		grid-template-columns: 1fr;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.contact-content {
		flex-direction: column;
		gap: 2rem;
	}

	.contact-avatar {
		width: 150px;
		height: 150px;
	}

	.contact-info {
		text-align: center;
	}

	.contact-info p {
		text-align: center;
	}
}

/* Small mobile */
@media screen and (max-width: 480px) {
	.intro-text {
		font-size: 1.5rem;
	}

	#nav ul {
		gap: 0.8rem;
		font-size: 0.8rem;
	}

	section {
		padding: 2rem 0;
	}

	.container {
		padding: 0 1rem;
	}
}