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

body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
}

/* HEADER */
header {
  background-color: #fff;
  padding: 30px 20px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.profile-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Profile Picture with Pastel "Halo" */
.profile-pic-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 10px;
}

.profile-pic-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: #e6f0fa;
  z-index: 0;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 1.8rem;
  margin: 10px 0;
}

/* Highlight Bars for Email & Location */
.highlight-bar {
  background-color: #e6f0fa;
  border-radius: 10px;
  padding: 10px 0;
  margin: 8px auto;
  font-weight: bold;
  color: #333;
  width: 60%;
  text-align: center;
  display: block;
}

.highlight-bar a {
  text-decoration: none;
  color: #333;
}

/* Summary / Headline Text */
.summary {
  margin-top: 15px;
  color: #555;
  line-height: 1.4;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Social Links (Header) */
.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: #333;
  font-size: 24px;
  text-decoration: none;
}

.social-links a:hover {
  color: #007bff;
}
/* GitHub icon color fix */
.social-links a[aria-label="GitHub"] i {
  color: var(--github-color);
}

/* Define GitHub icon color for light and dark mode */
:root {
  --github-color: #000; /* Black for light mode */
}

body.dark-mode {
  --github-color: #fff; /* White for dark mode */
}


/* Contact Button */
.contact-button {
  margin-top: 15px;
}

.btn-contact {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.btn-contact:hover {
  background-color: #0056b3;
}

/* MAIN CONTENT (TWO COLUMNS) */
main {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  gap: 20px;
}

.left-column {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SKILLS & CERTIFICATIONS */
.skills {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
  justify-content: center;
}

.skills h2 {
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}

.skills  .pill {
  display: inline-block;
  background-color: #eef3f7;
  color: #333;
  border-radius: 20px;
  padding: 8px 12px;
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.2;
}
/* put this into your existing <style> block */

/* CERTIFICATIONS (full‑width, centered) */
.certifications {
  max-width: 900px;        /* or whatever fits your design */
  margin: 2rem auto;       /* center horizontally & space above */
  padding: 20px;
  background: var(--bg-color, #fff);
  border: 1px solid var(--pill-border, #ddd);
  border-radius: 6px;
}

/* Heading centered */
.certifications h2 {
  text-align: center;
  color: var(--highlight-color, #0077B5);
  margin-bottom: 1rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

/* Pill wrapper: flex & wrap */
.pill-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;         /* space between pills */
  margin-top: 1rem;
}

/* Individual pills */
.pill {
  background: var(--pill-bg, #eef3f7);
  color: var(--text-color, #333);
  border-radius: 20px;
  padding: 8px 12px;
  white-space: nowrap;     /* keep them on one line */
}

/* EDUCATION & EXPERIENCE */
.education,
.experience {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.education h2,
.experience h2 {
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}

.education ul {
  list-style: disc;
  margin-left: 20px;
  margin-top: 10px;
}

.education li {
  margin-bottom: 10px;
}

.experience h3 {
  margin: 15px 0 5px;
  font-size: 1rem;
  font-weight: bold;
}

.experience ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 10px;
}

/* PROJECTS */
.projects {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}

.projects h2 {
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  display: inline-block;
  padding-bottom: 5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  padding: 20px;
}

.project-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 10px 0;
  font-size: 1.1rem;
}

.project-card p {
  margin-bottom: 10px;
  color: #555;
}

.view-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
}

/* CONTACT FORM STYLES */
.contact-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

.contact-container h2 {
  margin-bottom: 20px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-container label {
  font-weight: bold;
  text-align: left;
}

.contact-container input[type="text"],
.contact-container input[type="email"],
.contact-container textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Form Buttons */
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.form-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.form-buttons button:hover {
  background-color: #0056b3;
}

/* Back Button Styling */
.btn-back {
  padding: 10px 20px;
  background-color: #6c757d;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
}

.btn-back:hover {
  background-color: #5a6268;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-top: 1px solid #ccc;
  margin-top: 20px;
}

/* Footer Social Links */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.footer-social-links a {
  color: #333;
  font-size: 24px;
  text-decoration: none;
}

.footer-social-links a:hover {
  color: #007bff;
}
/* MOBILE VIEW: Show only top on load, scroll for rest */
@media screen and (max-width: 480px) {
  body {
    height: 100vh;
    overflow-y: auto;
  }

  .profile-container {
    max-height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: relative;
    padding-bottom: 40px;
  }

  .profile-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
  }

  main {
    padding-bottom: 60px;
  }
}

/* About Me icon styling */

.scrollable-section {
  max-height: 100vh;
  overflow-y: auto;
  margin-top: 20px;
  padding: 10px 0;
}

@media (min-width: 768px) {
  /* On tablets and desktops, remove scroll behavior */
  .scrollable-section {
    max-height: none;
    overflow-y: visible;
  }
}
