/* ──────────────────────────────────────────────
   Theme Variables
────────────────────────────────────────────── */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --link-color: #1a0dab;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --link-color: #8ab4f8;
}

/* ──────────────────────────────────────────────
   Base Styling
────────────────────────────────────────────── */
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.6;
}

header, section, footer {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

h1 {
  margin-bottom: 0;
  font-size: 2em;
  text-align: center;
}

h2 {
  border-bottom: 1px solid #aaa;
  padding-bottom: 5px;
  margin-top: 40px;
  font-size: 1.6em;
  text-align: left;
}

/* ──────────────────────────────────────────────
   Profile Header
────────────────────────────────────────────── */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.profile-img-wrapper {
  flex-shrink: 0;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
  flex: 1;
}

.profile-info h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
}

.profile-info .subtitle {
  margin-top: 5px;
  font-size: 1.2em;
  color: var(--text-color);
}



/* ──────────────────────────────────────────────
   Social Links
────────────────────────────────────────────── */
.social-links {
  margin-top: 10px;
}

.social-links a {
  margin: 0 10px;
  color: gray;
  font-size: 1.4em;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--link-color);
}

/* ──────────────────────────────────────────────
   Resume Link
────────────────────────────────────────────── */
.resume-link {
  font-weight: 600;
  color: var(--link-color);
  text-decoration: none;
}

.resume-link:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────
   Projects Section
────────────────────────────────────────────── */
.project-block {
  margin-bottom: 50px;
}

.project-title {
  text-align: left;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.project-image-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-image {
  max-width: 100%;
  width: 300px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Custom Sizes for Individual Projects */
.project1-img {
  width: 200px;
}

.project2-img {
  width: 100%;
  max-width: 500px;
}

.project-description {
  text-align: left;
  font-size: 1em;
  max-width: 800px;
  margin: auto;
}

.project-description a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
}

.project-description a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────
   Footer
────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: var(--text-color);
}

/* ──────────────────────────────────────────────
   Fancy Theme Toggle Switch
────────────────────────────────────────────── */
.fancy-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 30px;
}

.fancy-toggle input {
  display: none;
}

.fancy-toggle .slider {
  background-color: #ccc;
  border-radius: 30px;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  transition: background-color 0.3s;
}

.fancy-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease;
  font-size: 14px;
  color: #f39c12;
}

.fancy-toggle input:checked + .slider {
  background-color: #4b5563;
}

.fancy-toggle input:checked + .slider .knob {
  left: 32px;
  color: #292525;
}

/* ──────────────────────────────────────────────
   Mobile Responsive Styles
────────────────────────────────────────────── */
@media (max-width: 768px) {
  header, section, footer {
    padding: 15px;
  }

  h1 {
    font-size: 1.5em;
    text-align: center;
  }

  h2 {
    font-size: 1.0em;
    text-align: center;
  }

  .fancy-toggle {
    top: 10px;
    right: 10px;
    transform: scale(0.85);
  }

  .profile-header {
  flex-direction: column;
  text-align: center;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .profile-info h1 {
    font-size: 1.8em;
  }

  .social-links {
    /* text-align: center; */
    margin-top: 10px;
  }

  .social-links a {
    font-size: 1.2em;
    margin: 0 8px;
  }

  .project-title {
    text-align: center;
    font-size: 1.1em;
  }

  .project-image-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .project-image {
    width: 100%;
    max-width: 90vw;
    height: auto;
  }

  .project1-img {
    width: 80%;
    max-width: 200px;
  }

  .project2-img {
    width: 100%;
    max-width: 90vw;
  }

  .project-description {
    padding: 0 10px;
    font-size: 0.95em;
  }
}
