:root {
	/* Light mode colors */
	--bg-primary-light: #f2f4e2;
	--bg-secondary-light: #eff3c5;
	--text-primary-light: #333333;
	--text-secondary-light: #666666;
	--accent-light: #6aa238;
	--accent-hover-light: #4F772D;
	--navbar-bg-light: #ffffff;
	--navbar-border-light: #e9ecef;
	
	/* Dark mode colors */
	--bg-primary-dark: #222629;
	--bg-secondary-dark: #2c3034;
	--text-primary-dark: #86c232;
	--text-secondary-dark: #6b6e70;
	--accent-dark: #86c232;
	--accent-hover-dark: #61892f;
	--navbar-bg-dark: #222629;
	--navbar-border-dark: #61892f;
}

body {
	font-family: "Open Sans";
	color: #f2f2f2;
	overflow-x: none;
	background-color: var(--bg-primary-dark);
	transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
	background-color: var(--bg-primary-light);
	color: var(--text-primary-light);
}

body.dark-mode {
	background-color: var(--bg-primary-dark);
	color: #f2f2f2;
}

.main-content {
	width: 75%;
	margin: 0px auto;
	max-width: 1200px;
	margin-top: 80px;
	margin-bottom: 100px;
}

a {
	text-decoration: none;
	color: #86c232;
	transition: color 0.3s ease;
	/* font-weight: bold; */
}

body.light-mode a {
	color: var(--accent-light);
}

a:hover {
	color: #61892f;
	transition: color 0.3s ease;
}

body.light-mode a:hover {
	color: var(--accent-hover-light);
}

a:visited,
a:click {
	color: inherit;
}

.cs_links {
	color: #61892f
}

/* A[href=""], A[href="#"] {
	color: #61892f;
} */

a.anchor {
	display: block;
	position: relative;
	top: -50px;
	visibility: hidden;
}

h3 {
	margin-top: 0px;
	color: #f2f2f2;
	transition: color 0.3s ease;
}

body.light-mode h3 {
	color: var(--text-primary-light);
}

.paper_title h3 {
	font-size: 1.45rem;
	margin-bottom: 8px;
}

.navbar {
	width: 100%;
	height: 60px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	background-color: #222629 !important;
	-moz-box-shadow: 0px 1px 2px #ccc;
	-webkit-box-shadow: 0px 1px 2px #ccc;
	box-shadow: 0px 3px 1px #61892f !important;
	color: #86c232 !important;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .navbar {
	background-color: var(--bg-primary-light) !important;
	box-shadow: 0px 3px 1px var(--accent-light) !important;
	color: #86c232 !important;
}

.navbar-brand {
	color: #86c232 !important;
	font-size: 28px;
	font-weight: bold;
	transition: color 0.3s ease;
}

body.light-mode .navbar-brand {
	color: var(--accent-light) !important;
}

.navbar-nav .nav-link {
	color: #86c232 !important;
	font-size: 20px;
	font-weight: bold;
	margin: 0 15px;
	transition: color 0.3s ease;
}

body.light-mode .navbar-nav .nav-link {
	color: var(--accent-light) !important;
}

.navbar-nav .nav-link:hover {
	color: #61892f !important;
}

body.light-mode .navbar-nav .nav-link:hover {
	color: var(--accent-hover-light) !important;
}

.navbar-toggler {
	border-color: #86c232 !important;
	background: none;
	border: none;
	color: #86c232;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: all 0.3s ease;
	width: auto;
	height: auto;
}

body.light-mode .navbar-toggler {
	color: var(--accent-light);
	border-color: var(--accent-light) !important;
}

.navbar-toggler:hover {
	background-color: rgba(134, 194, 50, 0.1);
	transform: scale(1.1);
}

body.light-mode .navbar-toggler:hover {
	background-color: rgba(45, 80, 22, 0.1);
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(134, 194, 50, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
	width: 1.2rem;
	height: 1.2rem;
}

body.light-mode .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(106, 162, 56, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
	background-color: #222629 !important;
	transition: background-color 0.3s ease;
	margin-top: 10px;
	padding-top: 0px;
}

body.light-mode .navbar-collapse {
	background-color: var(--bg-primary-light) !important;
}

.navbar-nav {
	background-color: #222629 !important;
	transition: background-color 0.3s ease;
}

body.light-mode .navbar-nav {
	background-color: var(--bg-primary-light) !important;
}


#about_me {
	display: inline-block;
	width: 100%;
	vertical-align: top;
	/* margin: 0px auto; */
	text-align: justify;
	/* padding-right: 50px; */
}



.section {
	text-align: justify;
}

.section a:link {
	color: #86c232;
	transition: color 0.3s ease;
}

body.light-mode .section a:link {
	color: var(--accent-light);
}

.section a:hover {
	color: #61892f;
}

body.light-mode .section a:hover {
	color: var(--accent-hover-light);
}

.section_title {
	margin-top: 20px;
	margin-bottom: 20px;
	font-size: 26px;
	font-weight: bold;
	color: #f2f2f2;
	transition: color 0.3s ease;
}

body.light-mode .section_title {
	color: var(--accent-light);
}

/* Navbar controls container */
.navbar-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Theme toggle button */
.theme-toggle {
	background: none;
	border: none;
	color: #86c232;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
	transition: all 0.3s ease;
}

body.light-mode .theme-toggle {
	color: var(--accent-light);
}

.theme-toggle:hover {
	background-color: rgba(134, 194, 50, 0.1);
	transform: scale(1.1);
}

body.light-mode .theme-toggle:hover {
	background-color: rgba(45, 80, 22, 0.1);
}

/* Light mode specific styles for pink text */
body.light-mode .paper_conf span[style*="color:#bd3a77"],
body.light-mode .paper_conf span[style*="color: #bd3a77"] {
	color: #8b0000 !important;
}

body.light-mode .paper_status {
	color: #8b0000 !important;
}

#photu_box {
	text-align: center;
	margin: 0px auto;
}

.photu {
	width: 280px;
	height: 280px;
	border-radius: 50%;
	margin-top: 50px;
	object-fit: cover;
}

.paper {
	margin-top: 40px;
}

.paper_img_box {
	vertical-align: top;
}

.paper_img {
	width: 100%;
	max-width: 250px;
	height: auto;
}

/* Video thumbnail styling */
.video-thumbnail {
	position: relative;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.video-thumbnail:hover {
	transform: scale(1.02);
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.7);
	color: white;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: background 0.2s ease;
}

.video-thumbnail:hover .play-button {
	background: rgba(0, 0, 0, 0.8);
}

.paper_text {
	vertical-align: top;
}

.paper_author {
	margin-bottom: 8px;
}

.paper_links {
	margin-top: 8px;
}

.paper_links a {
	color: #86c232;
	text-decoration: none;
	transition: color 0.3s ease;
}

.paper_links a:hover {
	color: #61892f;
}

body.light-mode .paper_links a {
	color: var(--accent-light);
}

body.light-mode .paper_links a:hover {
	color: var(--accent-hover-light);
}

.link_comment {
	color: #6b6e70;
}

.social-links {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.social-links a {
	font-size: 2rem;
	color: #86c232;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.social-links a:hover {
	color: #61892f;
	transform: scale(1.1);
}

body.light-mode .social-links a {
	color: var(--accent-light);
}

body.light-mode .social-links a:hover {
	color: var(--accent-hover-light);
}

.social-links i {
	transition: transform 0.3s ease;
}

.social-links a:hover i {
	transform: scale(1.1);
}

.cv-icon {
	font-family: 'Courier New', monospace;
	font-weight: bold;
	font-size: 1.2rem;
	background-color: #86c232;
	color: var(--bg-primary-dark);
	padding: 4px 6px;
	border-radius: 4px;
	display: inline-block;
	line-height: 1;
	transition: all 0.3s ease;
	vertical-align: middle;
}

.social-links a:hover .cv-icon {
	background-color: #61892f;
	color: var(--bg-primary-dark);
	transform: scale(1.1);
}

body.light-mode .cv-icon {
	background-color: var(--accent-light);
	color: var(--bg-primary-light);
}

body.light-mode .social-links a:hover .cv-icon {
	background-color: var(--accent-hover-light);
	color: var(--bg-primary-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.main-content {
		width: 95%;
		margin-top: 80px;
	}
	
	.navbar-brand {
		font-size: 24px;
	}
	
	.navbar-nav .nav-link {
		font-size: 18px;
	}
	
	.navbar-collapse {
		background-color: #222629 !important;
		margin-top: 10px;
		padding-top: 0px;
		border: none;
	}
	
	body.light-mode .navbar-collapse {
		background-color: var(--bg-primary-light) !important;
	}
	
	.navbar-nav {
		background-color: #222629 !important;
		padding: 10px;
		border-radius: 5px;
	}
	
	body.light-mode .navbar-nav {
		background-color: var(--bg-primary-light) !important;
	}
	
	.section_title {
		font-size: 22px;
	}
	
	.paper_img_box {
		margin-bottom: 15px;
		text-align: center;
	}
	
	.photu {
		width: 300px;
		height: 300px;
	}
	
	.paper_img {
		max-width: 300px;
	}
}

/* .paper_text a:link{
	color:#86c232
}
.paper_text a:hover{
	color:#61892f
} */