@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Merriweather:300,700,300italic,700italic|Source+Sans+Pro:900");

/* <!-- Everforest Theme Styles --> */
/* <style> */
/* Everforest Color Palette */
:root {
	/* Dark Theme */
	--bg0: #2d353b;
	--bg1: #343f44;
	--bg2: #3d484d;
	--bg3: #475258;
	--bg4: #4f585e;
	--bg5: #56635f;
	--bg-red: #4c3743;
	--bg-visual: #493b40;
	--bg-yellow: #45443c;
	--bg-green: #3c4841;
	--bg-blue: #384b55;
	
	/* Foreground */
	--fg: #d3c6aa;
	--red: #e67e80;
	--orange: #e69875;
	--yellow: #dbbc7f;
	--green: #a7c080;
	--blue: #7fbbb3;
	--aqua: #83c092;
	--purple: #d699b6;
	--grey0: #7a8478;
	--grey1: #859289;
	--grey2: #9da9a0;
	
	/* Accent colors */
	--primary: var(--green);
	--secondary: var(--blue);
	--accent: var(--yellow);
	--highlight: var(--aqua);
}

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 100%);
	color: var(--fg);
	line-height: 1.6;
	min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg1);
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--highlight);
}

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

/* Header */
header {
	background: rgba(45, 53, 59, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bg2);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: all 0.3s ease;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.logo:hover {
	color: var(--highlight);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
}

.nav-links a {
	color: var(--fg);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.nav-links a:hover {
	color: var(--primary);
}

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

.nav-links a:hover::after {
	width: 100%;
}

.social-links {
	display: flex;
	gap: 1rem;
}

.social-links a {
	color: var(--grey1);
	font-size: 1.2rem;
	transition: all 0.3s ease;
}

.social-links a:hover {
	color: var(--primary);
	transform: translateY(-2px);
}

/* Hero Section */
.hero {
	min-height: 80vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	text-align: center;
	background: linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg2) 100%);
	position: relative;
	overflow: hidden;
	padding: 6rem 0 3rem;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(167, 192, 128, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(127, 187, 179, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(219, 188, 127, 0.1) 0%, transparent 50%);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero h1 {
	font-size: 4rem;
	font-weight: 800;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 1s ease;
}

.hero h2 {
	font-size: 2rem;
	margin-bottom: 2rem;
	color: var(--fg);
	font-weight: 400;
	animation: fadeInUp 1s ease 0.2s both;
}

.typing-animation {
	border-right: 2px solid var(--primary);
	animation: blink 1s infinite;
}

@keyframes blink {
	0%, 50% { border-color: transparent; }
	51%, 100% { border-color: var(--primary); }
}

.hero-description {
	font-size: 1.2rem;
	margin-bottom: 3rem;
	color: var(--grey1);
	line-height: 1.8;
	animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
	text-align: center;
	padding: 1.5rem;
	background: rgba(167, 192, 128, 0.1);
	border-radius: 15px;
	border: 1px solid rgba(167, 192, 128, 0.2);
	transition: all 0.3s ease;
}

.stat-item:hover {
	transform: translateY(-5px);
	background: rgba(167, 192, 128, 0.15);
	border-color: var(--primary);
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary);
	display: block;
	margin-bottom: 0.5rem;
}

.stat-label {
	color: var(--grey1);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
	color: var(--bg0);
	padding: 1rem 2rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(167, 192, 128, 0.3);
	animation: fadeInUp 1s ease 0.8s both;
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 40px rgba(167, 192, 128, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	animation: bounce 2s infinite;
}

.scroll-indicator i {
	font-size: 2rem;
	color: var(--primary);
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
	40% { transform: translateX(-50%) translateY(-10px); }
	60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections */
section {
	padding: 6rem 0;
	position: relative;
}

.section-header {
	text-align: center;
	margin-bottom: 4rem;
}

.section-title {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--fg);
}

.section-subtitle {
	font-size: 1.2rem;
	color: var(--grey1);
	max-width: 600px;
	margin: 0 auto;
}

/* About Section */
.about {
	background: var(--bg1);
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 4rem;
	align-items: start;
}

.about-image {
	padding: 16px;                 
	background: linear-gradient(
		135deg,
		var(--primary),
		var(--highlight)
	);
	border-radius: 18px;         
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center; 
}

.about-image img {
	width: 300px;                
	height: 380px;                
	object-fit: cover;
	border-radius: 14px;
	border: 2px solid var(--bg0);  
	display: block;
}

.about-image img:hover {
	transform: scale(1.02);        /* nhẹ */
	box-shadow: 0 12px 12px rgba(0,0,0,0.35);
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg3);
    color: var(--fg);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 1rem; /* Reduced from 2rem */
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.download-cv:hover {
	background: var(--primary);
	color: var(--bg0);
	transform: translateY(-2px);
}

.about-text {
	color: var(--grey1);
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 2rem;
}

/* Tabs */
.tab-container {
	margin-top: 2rem;
}

.tab-buttons {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
}

.tab-button {
	padding: 1rem 1.5rem;
	background: var(--bg3);
	color: var(--grey1);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tab-button.active,
.tab-button:hover {
	background: var(--primary);
	color: var(--bg0);
	transform: translateY(-2px);
}

.tab-content {
	display: none;
	background: var(--bg2);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid var(--bg3);
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

.info-list {
    display: table;
    width: 100%;
    border-spacing: 0 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: table-row;
}

.info-label {
    display: table-cell;
    color: var(--primary);
    font-weight: 600;
    width: 150px;
    text-align: left;
    padding-right: 1rem;
    vertical-align: baseline;
}

.info-list li::after {
    content: attr(data-value);
    display: table-cell;
    color: var(--fg);
    vertical-align: baseline;
}

.exp-list {
	list-style: none;
}

.exp-list li {
	margin-bottom: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--bg3);
}

.exp-label {
	color: var(--primary);
	font-weight: 600;
	margin-right: 1rem;
}


/* Skills Section */
.skills {
	background: var(--bg0);
}

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

.skill-card {
	background: var(--bg1);
	padding: 2rem;
	border-radius: 20px;
	border: 1px solid var(--bg3);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.skill-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--primary), var(--highlight));
}

.skill-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	border-color: var(--primary);
}

.skill-card h3 {
	color: var(--fg);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.skill-card h3 i {
	color: var(--primary);
}

.skill-item {
	margin-bottom: 1rem;
}

.skill-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.skill-name {
	color: var(--fg);
	font-weight: 500;
}

.skill-level {
	color: var(--grey1);
	font-size: 0.9rem;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: var(--bg3);
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--highlight));
	border-radius: 4px;
	animation: fillBar 2s ease-out;
}

@keyframes fillBar {
	from { width: 0%; }
}

.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.tech-tag {
	background: var(--bg3);
	color: var(--fg);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	border: 1px solid var(--primary);
	transition: all 0.3s ease;
}

.tech-tag:hover {
	background: var(--primary);
	color: var(--bg0);
}

.view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    margin-top: 1.2rem;

    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;

    color: var(--primary);

    transition: all 0.3s ease;
}

.view-details i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-details:hover {
    color: var(--highlight);
}

.view-details:hover i {
    transform: translateX(4px);
}

/* Learning Progress Section */
.learning-progress {
	background: linear-gradient(135deg, var(--bg-green) 0%, var(--bg1) 100%);
	padding: 3rem;
	border-radius: 20px;
	margin: 4rem 0;
	border: 1px solid var(--primary);
}

.learning-progress h3 {
	color: var(--primary);
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.progress-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.progress-item {
	background: rgba(167, 192, 128, 0.1);
	padding: 1.5rem;
	border-radius: 15px;
	border: 1px solid rgba(167, 192, 128, 0.2);
}

.progress-item strong {
	color: var(--primary);
	display: block;
	margin-bottom: 1rem;
}

.progress-item small {
	color: var(--grey1);
	font-style: italic;
}

/* Footer */
footer {
	background: var(--bg0);
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--bg2);
}

.footer-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
}

.contact-form {
	background: var(--bg1);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid var(--bg3);
}

.contact-form h3 {
	color: var(--fg);
	margin-bottom: 2rem;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	color: var(--grey1);
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem;
	background: var(--bg2);
	border: 1px solid var(--bg3);
	border-radius: 8px;
	color: var(--fg);
	font-family: inherit;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(167, 192, 128, 0.1);
}

.submit-btn {
	background: linear-gradient(135deg, var(--primary), var(--highlight));
	color: var(--bg0);
	padding: 1rem 2rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(167, 192, 128, 0.3);
}

.footer-bottom {
	text-align: center;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--bg2);
	color: var(--grey1);
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.5rem;
	}
	
	.hero h2 {
		font-size: 1.5rem;
	}
	
	.about-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	
	.skills-grid {
		grid-template-columns: 1fr;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
	}
	
	.nav-links {
		display: none;
	}
	
	.hero-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-content {
        /* grid-template-columns: 1fr; */
        position: relative;
    }
    
    .about-image {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-image img {
        width: 240px;
        height: 300px;
		/* grid-column: 1; */
    }

    .download-cv {
        /* grid-column: 2;  */
        margin-top: 1rem;
        padding: 0.8rem 1rem;
        /* font-size: 0.9rem; */
        /* white-space: nowrap; */
    }
    
}

/* Custom scrollbar for webkit browsers */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--primary) var(--bg1);
}
/* </style> */

/* =======================
	Contact
======================= */

.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg0), var(--bg1));
    border-top: 1px solid var(--bg2);
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 0.5px;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--grey1);
    max-width: 520px;
    margin: 0.5rem auto 0;
}

/* Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg1);
    border: 1px solid var(--bg3);
    border-radius: 16px;
    padding: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.contact-card.muted {
    cursor: default;
}

/* Text */
.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey1);
    margin-bottom: 0.6rem;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--fg);
}

/* Signature */
.contact-signature {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey1);
    font-style: italic;
}