/* === General Page Styling === */
body {
  background: linear-gradient(to bottom, #00b6aa, #000000);
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.container {
  max-width: 500px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
}

/* === Profile Image === */
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid #444;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
}

/* === Title and Subtext === */
h1 {
  font-size: 28px;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

p {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* === Link Buttons === */
.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f1f1f;
  color: #fff;
  text-decoration: none;
  margin: 12px 0;
  border-radius: 12px;
  transition: all 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  padding: 14px 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 182, 170, 0.2);
}

.link:hover {
  transform: scale(1.05);
  background-color: #2a2a2a;
  box-shadow: 
    0 0 8px rgba(0, 182, 170, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 182, 170, 0.6); 
}

/* === Flex Layout for Icon + Text === */
.link-content {
  position: relative;
  width: 100%;
  text-align: center;
}

/* === Icon on the Left === */
.icon-container {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* === Link Text Centered === */
.link-text {
  font-weight: 500;
}

/* === SVG Icon Styling === */
.icon {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.link, h1, p{
  transition: all 0.4s ease;
}

.icon {
  transition: stroke 0.4s ease;
}

#toast {
  visibility: hidden;
  min-width: 180px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 20px;
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}

#toast.show {
  visibility: visible;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

#theme-toggle svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  transition: transform 0.2s ease;
}

#theme-toggle:hover svg {
  transform: rotate(15deg);
}

#theme-toggle .icon {
  display: none;
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

#theme-toggle .icon.active {
  display: inline-block;
  transform: rotate(0deg);
}

body.light-mode {
  background: linear-gradient(to bottom, #ffc0cb, #ffffff);
  color: #111;
}

/* === Buttons === */
body.light-mode a .icon {
  stroke: #111 !important;
}
body.light-mode #theme-toggle .icon svg {
  stroke: #fff !important;
  fill: #fff !important;
}

body.light-mode .link {
  background-color: #ffffff;
  color: #111;
  border: 1px solid rgba(255, 192, 203, 0.4);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

body.light-mode .link:hover {
  background-color: #f5f5f5;
  box-shadow:
    0 0 8px rgba(255, 192, 203, 0.5),
    0 8px 20px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 192, 203, 0.6);
}

/* === Text === */
body.light-mode h1,
body.light-mode p {
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

/* === Profile Picture === */
body.light-mode .profile-pic {
  border: 2px solid #ccc;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

#theme-toggle .icon svg {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.fade-wrapper {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-wrapper.fade-out {
  opacity: 0;
}