/* Global Styles */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#darkModeToggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("./images/bg.png") no-repeat center center/cover;
  color: #fff;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Section Spacing */
section {
  padding: 80px 0;
}

/* Navbar Customizations */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

img {
  width: 400px;
  height: 320px;
}

/* Hover Animation */
.hover-animate {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-animate:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Social Media Icon Hover Effect */
.social-icons a {
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

.social-icons a:hover {
  opacity: 80%;
}

/* Dark Mode */
.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

.dark-mode .navbar,
.dark-mode footer {
  background-color: #222;
}

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

.dark-mode .list-group-item {
  background-color: #444;
  color: #ddd;
}
.dark-mode #experience,
.dark-mode #learning {
  background-color: #1a1a1a !important;
  color: #ffffff;
}

/* Dark Mode Button */
#darkModeToggle {
  border-radius: 5px;
  padding: 8px 12px;
}

/* Back to Top Button */
#backToTop {
  border-radius: 5px;
  padding: 8px 12px;
  margin-top: 10px;
}

@media (min-width: 992px) {
  #darkModeToggle {
    margin-left: 1rem;
  }
}

@media (max-width: 991px) {
  /* Light mode border */
  #experience .row .col-md-6:first-child .list-group-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  }

  /* Dark mode border */
  body.dark-mode
    #experience
    .row
    .col-md-6:first-child
    .list-group-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
}
