@import "template.css";

/* =============================================
   HOME PAGE — index.css
   Styled to match achievements / contact / projects aesthetic
   ============================================= */

/* ---- Hero Section ---- */
.hero-section {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 55vh;
	padding: 60px 5% 50px;
	text-align: center;
}

.hero-content {
	max-width: 780px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.06);
	color: #555;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 50px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.4px;
}

body.dark-mode .hero-badge {
	background: rgba(0, 210, 255, 0.08);
	color: #00d2ff;
	border-color: rgba(0, 210, 255, 0.25);
}

.hero-title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(28px, 5vw, 52px);
	font-weight: 700;
	color: #111;
	line-height: 1.15;
	margin: 0;
}

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

.hero-subtitle {
	font-size: clamp(14px, 2vw, 18px);
	color: #666;
	line-height: 1.6;
	margin: 0;
	max-width: 620px;
}

body.dark-mode .hero-subtitle {
	color: #b3b3b3;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 8px;
}

/* ---- Shared Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	border: 1px solid transparent;
}

.btn-primary {
	background: #111;
	color: #fff;
	border-color: #111;
}

.btn-primary:hover {
	background: #333;
	border-color: #333;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
	background: transparent;
	color: #111;
	border-color: rgba(0,0,0,0.2);
}

.btn-secondary:hover {
	background: #f5f5f5;
	border-color: rgba(0,0,0,0.3);
	color: #111;
	transform: translateY(-3px);
}

.btn-outline {
	background: transparent;
	color: #555;
	border-color: rgba(0,0,0,0.12);
}

.btn-outline:hover {
	background: #f5f5f5;
	color: #111;
	transform: translateY(-3px);
}

body.dark-mode .btn-primary {
	background: rgba(0, 210, 255, 0.9);
	color: #000;
	border-color: transparent;
}

body.dark-mode .btn-primary:hover {
	background: #00d2ff;
	box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

body.dark-mode .btn-secondary {
	color: #e0e0e0;
	border-color: rgba(0, 210, 255, 0.3);
}

body.dark-mode .btn-secondary:hover {
	background: rgba(0, 210, 255, 0.08);
	border-color: rgba(0, 210, 255, 0.6);
	color: #00d2ff;
}

body.dark-mode .btn-outline {
	color: #a0a0a0;
	border-color: rgba(255,255,255,0.12);
}

body.dark-mode .btn-outline:hover {
	background: rgba(255,255,255,0.06);
	color: #e0e0e0;
}

/* ---- Home Container (section wrapper) ---- */
.home-container {
	width: 90%;
	max-width: 1200px;
	margin: 40px auto 0;
}

.margin-bottom-lg {
	margin-bottom: 60px;
}

/* ---- Section Header ---- */
.section-header {
	text-align: center;
	margin-bottom: 28px;
}

.section-header h2 {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(20px, 3.5vw, 28px);
	font-weight: 700;
	color: #111;
	margin-bottom: 8px;
}

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

.section-header p {
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	color: #666;
}

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

/* ---- About Card ---- */
.about-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	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 cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.dark-mode .about-card {
	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 .about-card: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);
}

.about-card-img-wrapper {
	flex-shrink: 0;
}

.about-profile-img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	display: block;
	transition: transform 0.4s ease;
}

.about-card:hover .about-profile-img {
	transform: scale(1.05);
}

body.dark-mode .about-profile-img {
	border-color: #111418;
	box-shadow: 0 0 25px rgba(0, 210, 255, 0.3);
}

.about-card-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.card-badge {
	display: inline-block;
	background: rgba(0, 0, 0, 0.06);
	color: #555;
	border-radius: 50px;
	padding: 4px 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	width: fit-content;
}

body.dark-mode .card-badge {
	background: rgba(0, 210, 255, 0.1);
	color: #00d2ff;
}

.about-card-content h2 {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(18px, 3vw, 24px);
	font-weight: 700;
	color: #111;
	margin: 0;
}

body.dark-mode .about-card-content h2 {
	color: #fff;
}

.about-card-content p {
	font-family: 'Poppins', sans-serif;
	font-size: 0.95rem;
	color: #666;
	line-height: 1.7;
	margin: 0;
}

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

/* ---- Tag Cloud ---- */
.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f0f0f0;
	color: #555;
	border-radius: 50px;
	padding: 5px 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 500;
}

body.dark-mode .tag {
	background: rgba(0, 210, 255, 0.1);
	color: #80dfff;
	border: 1px solid rgba(0, 210, 255, 0.2);
}

.card-actions {
	margin-top: 4px;
}

/* ---- Card Grid (publications & projects) ---- */
.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.preview-card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	color: inherit;
}

.preview-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
	border-color: rgba(0, 0, 0, 0.15);
	background: rgba(255, 255, 255, 0.9);
	color: inherit;
}

body.dark-mode .preview-card {
	background: rgba(17, 20, 24, 0.6);
	border: 1px solid rgba(0, 210, 255, 0.15);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .preview-card:hover {
	box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15), inset 0 0 15px rgba(0, 210, 255, 0.05);
	border-color: rgba(0, 210, 255, 0.5);
	background: rgba(17, 20, 24, 0.9);
}

.card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.icon-python { background: #fff4e0; color: #e97700; }
.icon-sbt    { background: #e8f5e9; color: #388e3c; }
.icon-ds     { background: #e8eaf6; color: #3949ab; }
.icon-ai     { background: #fce4ec; color: #c62828; }
.icon-ml     { background: #e0f7fa; color: #00838f; }
.icon-cad    { background: #ede7f6; color: #6a1b9a; }

.card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.card-body h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #111;
	margin: 0;
}

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

.card-body p {
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.55;
	margin: 0;
}

body.dark-mode .card-body p {
	color: #999;
}

.card-link-text {
	font-family: 'Poppins', sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	color: #333;
	margin-top: 4px;
}

body.dark-mode .card-link-text {
	color: #80dfff;
}

.card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.mini-tag {
	background: #f0f0f0;
	color: #555;
	border-radius: 50px;
	padding: 3px 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 600;
}

body.dark-mode .mini-tag {
	background: rgba(0, 210, 255, 0.1);
	color: #80dfff;
	border: 1px solid rgba(0, 210, 255, 0.2);
}

/* ---- Center button wrapper ---- */
.center-btn-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media only screen and (min-width: 640px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media only screen and (min-width: 992px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.about-card {
		flex-direction: row;
		align-items: center;
	}
}
