@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

html {
	overflow-x: hidden;
	width: 100%;
}

body {
	font-family: 'Poppins', sans-serif;
	overflow-x: hidden;
	width: 100%;
	max-width: 100vw;
}

.timeline-section {
	/* background-color: #24292d; */
	min-height: 100vh;
	padding: 100px 15px;
	overflow-x: hidden;
	width: 100%;
}

.timeline-items {
	max-width: 1000px;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	position: relative;
	width: 100%;
	overflow-x: hidden;
}

.timeline-items::before {
	content: '';
	position: absolute;
	width: 2px;
	height: 100%;
	background-color: #2f363e;
	left: calc(50% - 1px);
}

.timeline-item {
	margin-bottom: 40px;
	width: 100%;
	position: relative;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
	padding-right: calc(50% + 30px);
	text-align: right;
}

.timeline-item:nth-child(even) {
	padding-left: calc(50% + 30px);
}

.timeline-dot {
	height: 16px;
	width: 16px;
	/* background-color: #eaa023; */
	background-color: black;
	position: absolute;
	left: calc(50% - 8px);
	border-radius: 50%;
	top: 10px;
}

.timeline-date {
	font-size: 18px;
	/* color: #eaa023; */
	color: black;
	margin: 6px 0 15px;
}

.timeline-content {
	/* background-color: #2f363e; */
	padding: 30px;
	border-radius: 5px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	max-width: 100%;
}

.timeline-content h3 {
	font-size: 20px;
	/* color: #ffffff; */
	color: black;
	margin: 0 0 10px;
	text-transform: capitalize;
	font-weight: 500;
}

.timeline-content p {
	/* color: #c8c8c8; */
	color: black;
	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
}

/* Mobile Optimizations */

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
	.timeline-section {
		padding: 80px 10px;
	}
	
	.timeline-content {
		padding: 25px;
	}
	
	.timeline-content h3 {
		font-size: 18px;
	}
	
	.timeline-content p {
		font-size: 15px;
		line-height: 20px;
	}
}

/* Tablets */
@media screen and (max-width: 768px) {
	.timeline-items::before {
		left: 7px;
	}

	.timeline-item:nth-child(odd) {
		padding-right: 0;
		text-align: left;
	}

	.timeline-item:nth-child(odd),
	.timeline-item:nth-child(even) {
		padding-left: 37px;
	}

	.timeline-dot {
		left: 0;
	}
	
	.timeline-section {
		padding: 60px 15px;
	}
	
	.timeline-content {
		padding: 20px;
	}
	
	.timeline-date {
		font-size: 16px;
	}
	
	.timeline-content h3 {
		font-size: 16px;
	}
	
	.timeline-content p {
		font-size: 14px;
		line-height: 18px;
	}
	
	/* Remove animations on mobile for better alignment and UX */
	.timeline-item {
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
	}
	
	/* Disable animations on mobile - keep everything static and aligned */
	.hidden,
	div>.hidden:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
	
	.show,
	div>.show:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
}

/* Mobile phones */
@media screen and (max-width: 480px) {
	.timeline-section {
		padding: 40px 10px;
	}
	
	.timeline-content {
		padding: 15px;
	}
	
	.timeline-date {
		font-size: 14px;
		margin: 4px 0 10px;
	}
	
	.timeline-content h3 {
		font-size: 14px;
		margin: 0 0 8px;
	}
	
	.timeline-content p {
		font-size: 13px;
		line-height: 16px;
	}
	
	.timeline-item {
		margin-bottom: 30px;
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
	}
	
	.timeline-item:nth-child(odd),
	.timeline-item:nth-child(even) {
		padding-left: 30px;
	}
	
	.timeline-dot {
		height: 12px;
		width: 12px;
		left: 1px; /* Better alignment with the timeline line */
		top: 8px;
	}
	
	/* Remove animations on mobile for better alignment and UX */
	.hidden,
	div>.hidden:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
	
	.show,
	div>.show:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
}

/* Extra small devices */
@media screen and (max-width: 320px) {
	.timeline-section {
		padding: 30px 5px;
	}
	
	.timeline-content {
		padding: 12px;
	}
	
	.timeline-content h3 {
		font-size: 13px;
	}
	
	.timeline-content p {
		font-size: 12px;
		line-height: 15px;
	}
	
	.timeline-item {
		overflow-x: hidden;
		width: 100%;
		max-width: 100%;
	}
	
	/* Remove animations on mobile for better alignment and UX */
	.hidden,
	div>.hidden:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
	
	.show,
	div>.show:nth-child(even) {
		opacity: 1;
		transform: translateX(0); /* Keep in normal position */
	}
}


/* CSS for typewriter animation */

#cursor {
	color: #105cd4;
	animation: blink 1s linear infinite;
}

#typewrite {
	color: aqua;
	font-weight: bold;
}

@keyframes blink {

	0% {
		opacity: 100%;
	}

	50% {
		opacity: 0%;
	}
}


/* CSS for full section div */
/* Too be honest i personally like it, but it just feels very user unfriendly... */
/* but if you were ever curious on how to implement it */
/* just nest everything in a big section put class as "lock"  */
/* then let our child's parent div have a class of "slides" */

/* .lock {
	width: 100%;
	height: 100vh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
}

.slides {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	gap:50px;
	scroll-snap-align:start;
} */


/* CSS for more scroll animations */
.hidden {
	opacity: 0;
	transform: translateX(-100%);
	transition: all 1.1s;
}

div>.hidden:nth-child(even) {
	/* opacity: 0;  */
	transform: translate(100%);
	transition: all 1.1s;
	/* background-color: aqua; */
}

@media (prefers-reduced-motion) {
	.hidden {
		transition: none;
	}
}

.show {
	opacity: 1;
	transform: translateX(0);
}

div>.show:nth-child(even) {
	opacity: 1;
	transform: translateX(0);
}

/* Desktop-specific animations with higher specificity */
@media screen and (min-width: 769px) {
	.timeline-item .hidden {
		opacity: 0;
		transform: translateX(-100%);
		transition: all 1.1s;
	}

	.timeline-item div>.hidden:nth-child(even),
	div>.timeline-item .hidden:nth-child(even) {
		opacity: 0;
		transform: translateX(100%);
		transition: all 1.1s;
	}

	.timeline-item .show {
		opacity: 1;
		transform: translateX(0);
		transition: all 1.1s;
	}

	.timeline-item div>.show:nth-child(even),
	div>.timeline-item .show:nth-child(even) {
		opacity: 1;
		transform: translateX(0);
		transition: all 1.1s;
	}
}

.move {
	position: relative;
	transition: transform 0.2s;
	transform: translateX(0px);
	/* border: solid cyan 2px; */
}

.move:hover {
	transform: translateX(80px);
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
	.move:hover {
		transform: translateX(0);
	}
}

/* */

