@import "template.css";

/* =============================================
   ABOUT PAGE — about.css
   Styled to match achievements / contact / projects aesthetic
   ============================================= */

/* ---- Page Header ---- */
.about-header {
	text-align: center;
	padding: 50px 5% 30px;
}

.about-header h1 {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #111;
	margin-bottom: 12px;
}

body.dark-mode .about-header h1 {
	color: #fff;
}

.about-header p {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	color: #666;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.65;
}

body.dark-mode .about-header p {
	color: #b3b3b3;
}

/* ---- Page Wrapper ---- */
.about-page-wrapper {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto 60px;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

/* ---- Shared section title ---- */
.section-title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	font-weight: 700;
	color: #111;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	gap: 10px;
}

body.dark-mode .section-title {
	color: #fff;
}

/* =============================================
   TIMELINE CONTAINER
   ============================================= */
.timeline-container {
	background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	padding: 36px;
	transition: all 0.3s ease;
}

.timeline-container:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-color: rgba(0, 0, 0, 0.15);
}

body.dark-mode .timeline-container {
	background: #111418;
	border: 1px solid rgba(0, 210, 255, 0.3);
	box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15), inset 0 0 15px rgba(0, 210, 255, 0.05);
}

body.dark-mode .timeline-container:hover {
	box-shadow: 0 8px 25px rgba(0, 210, 255, 0.25), inset 0 0 20px rgba(0, 210, 255, 0.08);
	border-color: rgba(0, 210, 255, 0.6);
}

/* Vertical line */
.timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.timeline::after {
	content: '';
	position: absolute;
	width: 4px;
	background: rgba(0, 0, 0, 0.15);
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 4px;
}

body.dark-mode .timeline::after {
	background: rgba(0, 210, 255, 0.3);
}

.timeline-item {
	padding: 10px 50px;
	position: relative;
	width: 50%;
	box-sizing: border-box;
	margin-bottom: 28px;
}

.timeline-item:nth-child(odd)  { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

/* Dot */
.timeline-dot {
	position: absolute;
	width: 16px;
	height: 16px;
	right: -8px;
	background: #333;
	border: 3px solid #fff;
	top: 18px;
	border-radius: 50%;
	z-index: 1;
}

body.dark-mode .timeline-dot {
	background: #00d2ff;
	border-color: #111418;
}

.timeline-item:nth-child(even) .timeline-dot {
	left: -8px;
	right: auto;
}

/* Date */
.timeline-date {
	position: absolute;
	width: 110px;
	top: 14px;
}

.timeline-item:nth-child(odd)  .timeline-date { right: -130px; text-align: left; }
.timeline-item:nth-child(even) .timeline-date { left:  -130px; text-align: right; }

.timeline-date span {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	color: #333;
	font-size: 13px;
}

body.dark-mode .timeline-date span {
	color: #00d2ff;
}

/* Content box */
.timeline-content {
	background: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	border: 1px solid rgba(0,0,0,0.07);
}

body.dark-mode .timeline-content {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(0, 210, 255, 0.15);
	box-shadow: none;
}

.timeline-content h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

body.dark-mode .timeline-content h3 {
	color: #fff;
}

.timeline-content p {
	font-family: 'Poppins', sans-serif;
	font-size: 0.88rem;
	color: #666;
	line-height: 1.55;
	margin: 4px 0 0;
}

body.dark-mode .timeline-content p {
	color: #a0a0a0;
}

/* =============================================
   SKILLS CARD
   ============================================= */
.skills-card-container {
	background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	padding: 36px;
	transition: all 0.3s ease;
}

.skills-card-container:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	border-color: rgba(0, 0, 0, 0.15);
}

body.dark-mode .skills-card-container {
	background: #111418;
	border: 1px solid rgba(0, 210, 255, 0.3);
	box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15), inset 0 0 15px rgba(0, 210, 255, 0.05);
}

body.dark-mode .skills-card-container:hover {
	box-shadow: 0 8px 25px rgba(0, 210, 255, 0.25), inset 0 0 20px rgba(0, 210, 255, 0.08);
	border-color: rgba(0, 210, 255, 0.6);
}

.skills-intro {
	font-family: 'Poppins', sans-serif;
	text-align: center;
	color: #666;
	font-size: 0.95rem;
	margin-bottom: 24px;
}

body.dark-mode .skills-intro {
	color: #a0a0a0;
}

#skills-visualization {
	width: 100%;
}

.instructions-overlay {
	margin-top: 16px;
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

body.dark-mode .instructions-overlay {
	color: #666;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 768px) {
	.about-header { padding: 36px 5% 24px; }
	.about-page-wrapper { width: 95%; }
	.timeline-container,
	.skills-card-container { padding: 22px 16px; }

	.timeline::after { left: 16px; }

	.timeline-item {
		width: 100%;
		padding-left: 48px;
		padding-right: 12px;
		left: 0 !important;
	}

	.timeline-dot { left: 7px !important; right: auto !important; }

	.timeline-date {
		position: static;
		width: auto;
		text-align: left !important;
		display: block;
		margin-bottom: 6px;
	}

	.timeline-item:nth-child(odd)  .timeline-date,
	.timeline-item:nth-child(even) .timeline-date {
		left: auto; right: auto;
	}
}
