:root {
  --bs-primary: rgba(78, 165, 117);
  --bs-secondary: rgb(99, 217, 152);
  --bs-tertiary: rgb(99, 217, 152, 0.15);
  --bs-text: rgb(20, 100, 60);
}

html {
  scroll-padding-top: 6rem;
}

body {
  background-color: var(--bs-tertiary);
}

/* Desktop */
section {
  margin: 3rem 2vw;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

li a {
  text-decoration: none;
}

hr {
  color: var(--bs-primary);
  margin: 0 5vw;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background-color: var(--bs-secondary) !important;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bs-text) !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #7762de !important;
}

.navbar-nav .nav-item a {
  color: var(--bs-light) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-item a:hover {
  color: rgb(3, 112, 50) !important;
  background-color: rgb(180, 248, 210) !important;
  transform: translateY(-2px);
}

.navbar-nav .nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3ae77c, #3f2ccb);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-item a:hover::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#hero {
  padding-top: 3rem;
}

#hero-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#hero-photo:hover {
  transition: all 0.3s ease;
  transform: scale(101%);
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

#hero-badge {
  background: var(--bs-light);
  color: var(--bs-primary);
  border: 1px solid var(--bs-secondary);
}

#about-badge {
  background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
  color: white;
  border: none;
}

#skill-badge {
  border: 1px solid var(--bs-primary);
  border-radius: 1rem;
  padding: 0.25rem 1rem;
  margin: 0.25rem;
  color: var(--bs-primary);
  font-weight: 500;
}

#skill-badge:hover {
  transform: scale(105%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-btn {
  background: var(--bs-primary);
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.hero-btn:hover {
  background: var(--bs-secondary);
  transform: scale(102%);
}

.title {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.section-title {
  font-weight: 700;
  color: var(--bs-primary);
}

.subsection-title {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.subtitle {
  font-size: 1.1rem;
  margin: 0;
  color: var(--bs-primary);
  font-weight: 400;
  margin-left: 0px !important;
}

.body-text {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--bs-text);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--bs-text);
}

span a {
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}
span a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--bs-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
span a:hover {
  color: var(--bs-secondary);
}
span a:hover::after {
  width: 100%;
}

/* Gallery Carousel Styles */
#gallery #portraitSlider {
  height: auto;
}

#gallery #landscapeSlider {
  height: auto;
}

.carousel-indicators button.active {
  background-color: var(--bs-secondary);
}

/* Section titles for gallery */
#gallery h3 {
  font-weight: 600;
  font-size: 1.2rem;
}

/* Ensure landscape carousel shows full landscape photos */
#gallery #landscapeSlider .carousel-item img {
  object-fit: contain; /* Changed from cover to contain to show full image */
  object-position: center;
}

/* Portrait carousel maintains its styling */
#gallery #portraitSlider .carousel-item img {
  object-fit: contain;
  object-position: center;
}

#projects #projectSlider,
#projectSlider2,
#projectSlider3 {
  height: auto;
}

#certificates .cert-card:hover {
  transition: all 0.3s ease;
  transform: scale(103%);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

#certificates .cert-card img {
  height: 275px;
  width: auto;
}

.social-link i {
  font-size: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: scale(105%);
}

@media (max-width: 992px) {
  .section-title, .subtitle {
    text-align: center;
  }
  #backToTopBtn {
    height: 70px !important;
    width: 70px !important;
  }
  .card-body .card-title {
    text-align: center;
  }
}
