/* Card bottom right action button alignment */
.card-action-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
}

/* Awards, Achievements & Online Profiles Section */
#awards-section .card {
  /* Use same style as .card for consistency */
  background-color: #eafaf1;
  border-radius: 1rem;
  border: 1px solid #b2f7c1;
}

.award-rank {
  font-size: 1.2rem;
}

.award-contest {
  font-size: 1.1rem;
}

.award-teams {
  font-size: 1rem;
}

/* Online Programming Profiles card styles */
.card.border-info {
  border-radius: 1rem;
  border: 1px solid #b2f7c1;
  background-color: #eafaf1;
}

.card.border-info .card-body {
  background: none;
}

/* Button style for View Profile */
.btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
  background-color: #0dcaf0;
  color: #fff;
}

/* Dark mode adjustments */
body.dark-mode {
  background-color: #23272b;
  color: #f8f9fa;
}

body.dark-mode .card.border-info,
body.dark-mode .card.border-info,
body.dark-mode .awards-list .card,
body.dark-mode .card {
  background-color: #313338;
  border-color: #43b581;
  color: #fff;
}

body.dark-mode .btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
  background: #23272b;
}

body.dark-mode .btn-outline-info:hover,
body.dark-mode .btn-outline-info:focus {
  background-color: #0dcaf0;
  color: #23272b;
}

/* Awards, Achievements & Online Profiles Section */
#awards-section .card {
  background: #23262b;
  border-radius: 16px;
  border: 2px solid #2ecc71;
}

#awards-section h2 {
  font-weight: 700;
  letter-spacing: 1px;
}

#awards-section h4 {
  color: #2ecc71;
  font-weight: 600;
}

#awards-section .list-group-item {
  background: transparent;
  color: #fff;
  border: none;
  padding-left: 0;
  font-size: 1rem;
}

#awards-section .card-title {
  color: #3498db;
  font-weight: 600;
}

#awards-section .btn-outline-info {
  background: #a3f7bf;
  color: #1a3c2b;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

#awards-section .btn-outline-info:hover,
#awards-section .btn-outline-info:focus {
  background: #1a3c2b;
  color: #a3f7bf;
}

/* Custom GitHub button style for project cards */
.btn-github {
  background: #a3f7bf;
  color: #1a3c2b;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(163, 247, 191, 0.15);
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-github:hover,
.btn-github:focus {
  background: #1a3c2b;
  color: #a3f7bf;
  box-shadow: 0 4px 16px rgba(163, 247, 191, 0.25);
}

/* Gradient Title */
.text-gradient {
  background: linear-gradient(90deg, #0077b5 0%, #ffa116 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Larger Social Buttons */
.btn-social.btn-lg {
  font-size: 1.15rem;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Social Profile Buttons */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: none;
}

.btn-social i {
  font-size: 1.2rem;
}

.btn-linkedin {
  background: #0077b5;
  color: #fff;
}

.btn-linkedin:hover {
  background: #005983;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.15);
}

.btn-github {
  background: #24292e;
  color: #fff;
}

.btn-github:hover {
  background: #171a1c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(36, 41, 46, 0.15);
}

.btn-codeforces {
  background: #f7c873;
  color: #222;
}

.btn-codeforces:hover {
  background: #e6b04a;
  color: #222;
  box-shadow: 0 4px 16px rgba(247, 200, 115, 0.15);
}

.btn-leetcode {
  background: #ffa116;
  color: #222;
}

.btn-leetcode:hover {
  background: #e59400;
  color: #222;
  box-shadow: 0 4px 16px rgba(255, 161, 22, 0.15);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f6fff9;
  /* very light green background */
  color: #111;
  /* black text */
  padding-top: 4rem;
  /* Add space for fixed navbar */
}

.navbar {
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

h1,
h2,
h3 {
  color: #111;
  /* black headings */
}

.hero {
  padding: 100px 0;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1;
}

.success-badge .years {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: #43b581;
  line-height: 1;
}

.success-badge .text {
  display: block;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.2;
}

.navbar,
.navbar.navbar-expand-lg {
  background-color: #43b581 !important;
  /* consistent green */
  border-bottom: 1px solid #36a169;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff !important;
  position: relative;
  transition: all 0.3s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 100%;
}

.navbar .nav-link:hover {
  transform: translateY(-2px);
}

.card {
  border-radius: 1rem;
  transition: transform 0.2s;
  border: 1px solid #b2f7c1;
  /* light green border */
  background-color: #eafaf1;
  /* lighter green card background */
  color: #111;
  /* black text */
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 24px rgba(67, 181, 129, 0.15);
}

section h2 {
  font-weight: 700;
  color: #111;
  /* black section headings */
}

.btn,
.btn-primary {
  background-color: #b2f7c1;
  color: #111;
  border: none;
  transition: background 0.2s;
}

.btn:hover,
.btn-primary:hover {
  background-color: #43b581;
  color: #fff;
}

footer {
  background-color: #43b581;
  color: #fff;
  letter-spacing: 1px;
  font-size: 1rem;
  border-top: 1px solid #36a169;
}

.list-inline-item a {
  color: #43b581;
  text-decoration: none;
  transition: color 0.2s;
}

.list-inline-item a:hover {
  color: #36a169;
  /* darker green on hover */
  text-decoration: underline;
}

/* Skills styles */
.skill-item .progress {
  background-color: #eafaf1;
  border-radius: 5px;
  overflow: hidden;
}

.skill-item .progress-bar {
  background-color: #43b581;
  transition: width 1s ease-in-out;
}

.btn-download {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 0.5rem 1.2rem;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 30px;
}

.btn-download:hover {
  background-color: #fff;
  color: #43b581;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Theme Switch Styles */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #43b581;
  transition: .4s;
  z-index: 2;
}

.slider .toggle-icon {
  font-size: 14px;
  z-index: 1;
}

input:checked+.slider {
  background-color: #2b2d31;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
  border: 1px solid #43b581;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #2b2d31;
  color: #fff;
}

body.dark-mode .success-badge {
  background: #313338;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .success-badge .text {
  color: #fff;
}

body.dark-mode .text-muted {
  color: #b0b0b0 !important;
}

body.dark-mode .card-subtitle {
  color: #b0b0b0 !important;
}

body.dark-mode .publication-item p {
  color: #b0b0b0;
}

body.dark-mode .skill-item span {
  color: #fff;
}

body.dark-mode ul.list-unstyled li {
  color: #fff;
}

body.dark-mode .btn-download {
  background-color: transparent;
  color: #43b581;
  border: 2px solid #43b581;
}

body.dark-mode .btn-download:hover {
  background-color: #43b581;
  color: #fff;
  box-shadow: 0 4px 15px rgba(67, 181, 129, 0.2);
}

body.dark-mode .navbar .nav-link::after {
  background-color: #43b581;
}

/* Headings */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .card-title {
  color: #fff;
}

/* Navbar */
body.dark-mode .navbar,
body.dark-mode .navbar.navbar-expand-lg {
  background-color: #1e1f22 !important;
  border-bottom: 1px solid #43b581;
}

body.dark-mode .navbar .navbar-brand,
body.dark-mode .navbar .nav-link {
  color: #fff !important;
}

/* Cards */
body.dark-mode .card {
  background-color: #313338;
  border-color: #43b581;
  color: #fff;
}

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

body.dark-mode .card a {
  color: #43b581;
}

body.dark-mode .card a:hover {
  color: #b2f7c1;
}

body.dark-mode .badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .card .text-decoration-none {
  color: #43b581 !important;
}

body.dark-mode .card .text-decoration-none:hover {
  color: #b2f7c1 !important;
}

/* Form elements */
body.dark-mode .form-control {
  background-color: #181c1b;
  border-color: #43b581;
  color: #fff;
}

body.dark-mode .form-control::placeholder {
  color: #999;
}

/* Buttons */
body.dark-mode .btn-primary {
  background-color: #43b581;
  color: #fff;
  border: none;
}

body.dark-mode .btn-primary:hover {
  background-color: #36a169;
}

body.dark-mode .btn-outline-primary {
  color: #43b581;
  border-color: #43b581;
}

body.dark-mode .btn-outline-primary:hover {
  background-color: #43b581;
  color: #fff;
}

/* Footer */
body.dark-mode footer {
  background-color: #222a28 !important;
  color: #fff;
}

body.dark-mode .award-contest {
  color: #fff;
}

body.dark-mode .bg-light {
  background-color: #222a28 !important;
}

/* Links */
body.dark-mode .list-inline-item a {
  color: #43b581;
}

body.dark-mode .list-inline-item a:hover {
  color: #b2f7c1;
}

body.dark-mode .btn-github {
  background: #24292e;
  color: #fff;
}

body.dark-mode .btn-github:hover {
  background: #171a1c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(36, 41, 46, 0.15);
}