/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Verdana', Verdana;
  background: linear-gradient(120deg, #f0f4ff, #e4f1ff);
  color: #333;
  transition: background 0.4s, color 0.4s;
  min-height: 100vh;
}

body.dark {
  background: #121212;
  color: #eee;
}

/* Container */
.container {
  max-width: 960px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

/* Headings */
h1 {
  font-size: 3rem;
  margin-bottom: 0.3em;
}

.bio {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #666;
}

body.dark .bio {
  color: #ccc;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #2c03c2ad;
}
body.dark h3 {
  color: #ddd;
}


/* Toggle Theme Button */
.toggle-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  padding: 10px;
  transition: background 0.3s;
  z-index: 1000;
}

.toggle-switch:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark .toggle-switch {
  background: rgba(255, 255, 255, 0.1);
}

/* Animated icon inside toggle */
.toggle-switch i {
  display: inline-block;
  transition: transform 0.5s ease, color 0.3s ease;
  transform-origin: center;
}

body.dark .toggle-switch i {
  transform: rotate(180deg) scale(1.2);
  color: #fdd835;
  /* optional: yellowish in dark mode for contrast */
}

/* Social Links */
.links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.links a {
  font-size: 2rem;
  color: inherit;
  position: relative;
  transition: transform 0.3s, color 0.3s;
}

/* Brand hover colors */
.links a[title="GitHub"]:hover {
  color: #626466;
}

.links a[title="LinkedIn"]:hover {
  color: #0077b5;
}

.links a[title="Email"]:hover {
  color: #c23a2bbe;
}

/* Icon scale + underline */
.links a:hover {
  transform: scale(1.5);
}

/* Underline hover effect for links */
.links a::after,
.projects a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width 0.9s ease-in-out;
}

.links a:hover::after,
.projects a:hover::after {
  width: 100%;
}


.links a:hover::after,
.projects a:hover::after {
  width: 100%;
}

/* Projects Section */
.projects {
  margin-top: 3rem;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.projects ul {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}

.projects li {
  margin: 0.7em 0;
}

/* Project links with color + hover effect */
.projects a {
  color: #2b6cb0;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.projects a:hover {
  color: #06d945;
  transform: scale(1.05);
}

/* Responsive Layout */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  .bio {
    font-size: 1.05rem;
  }

  .projects h2 {
    font-size: 1.6rem;
  }

  .projects ul {
    font-size: 1rem;
  }

  .toggle-switch {
    font-size: 1.2rem;
    padding: 8px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .bio {
    font-size: 1rem;
  }

  .links {
    gap: 15px;
  }

  .links a {
    font-size: 1.6rem;
  }

  .projects h2 {
    font-size: 1.4rem;
  }

  .projects ul {
    font-size: 0.95rem;
  }
}