/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f0f0f0; /* Light background */
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  overflow-y: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #000000;
  color: #e0e0e0;
}

/* Page Container */
.page-container {
  background-color: #ffffff;
  border-radius: 30px;
  padding: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 950px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.page-container.dark-mode {
  background-color: #1e1e1e;
  box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

/* Container & Toggle */
.container {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 20px;
}

/* Mode Toggle */
.mode-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
}

.mode-toggle input {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: #ccc;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.mode-toggle input:checked + .toggle-label {
  background-color: #333;
}

.toggle-label .toggle-icon {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.toggle-label:hover .toggle-icon {
  transform: scale(1.1);
}

.toggle-label .toggle-text {
  font-size: 1rem;
  color: #000;
  transition: color 0.3s ease;
}

.mode-toggle input:checked + .toggle-label .toggle-text {
  color: #fff;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}
.bounce {
  animation: bounce 1s ease;
}

/* Hand Emoji Wave Animation */
@keyframes wave {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(14deg); }
  50% { transform: rotate(-4deg); }
  60% { transform: rotate(10deg); }
  70% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
.hand {
  display: inline-block;
  transform-origin: bottom center;
  animation: wave 2s ease-in-out infinite;
}

/* Typewriter Effect Styling for h2 */
.typewriter {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 2.5rem;
}

/* Fade-in for typewriter element */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Profile Image (Grayscale to Color on Hover) */
.profile-container {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-bottom: 30px;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  border: 0;
  filter: grayscale(100%);
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.profile-img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Headings */
h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 10px;
  margin-top: 10px;

}

h2 {
  padding-bottom: 10px;
  padding-top: 20px;
}

h3 {
  padding-bottom: 10px;
  padding-top: 20px;
}

/* Who Am I Section */
.who-am-i {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 10px;
  /* color in light */
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .who-am-i {
  /* color in dark */
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Section Titles */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: font-size 0.3s ease;
}
.section-title.active {
  font-size: 1.8rem;
}

/* Description Box (open by default, will fade in) */
.description-box {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.8;
  /* max-width: 870px; */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Fade-in effect for description boxes */
.description-box.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}
.description-box.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .description-box {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 10px;
  margin-top: auto;
  padding-bottom: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
  flex-wrap: wrap;
  width: 100%;
}

.social-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.social-links i {
  font-size: 30px;
  color: #6e6e6e;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.social-links a:hover i {
  color: #0042D7;
  transform: scale(1.2);
}

.copyrights {
  font-size: 1rem;
  font-weight: 300;
  color: #a3a3a3;
  line-height: 1.8;
  text-align: center;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    text-align: left;
    padding-bottom: 5px;
  }
  .container {
    padding: 10px;
  }
  h1 {
    font-size: 3rem;
  }
  .profile-container {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
  }
  .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  }
  .profile-img:hover {
    transform: scale(2) translateY(13%);
  }
  .social-links {
    justify-content: center;
    padding: 5px 0;
  }
}

/* Highlight Text */
.highlight {
  background: linear-gradient(to bottom, transparent 100%, #ffdb4a 20px);
  padding: 0px 0;
  border-radius: 3px;
  display: inline;
}