/* Reset and base -------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #ccc;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}


a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Hamburger Menu Button ------------------------------------------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #3a3a3a;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu Overlay ---------------------------------------------------------- */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar -------------------------------------------------------------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: #7e5656;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 950;
  transition: transform 0.3s ease;
}

.sidebar__close {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #3a3a3a;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.sidebar__close:hover {
  color: #555;
}

.sidebar__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fdfbfb;
  margin-bottom: 2rem;
  text-align: center;
}

.sidebar__nav ul {
  list-style: none;
}

.sidebar__nav li {
  margin: 1.2rem 0;
  transition: all 0.2s ease;
}

.sidebar__nav a {
  font-weight: 500;
  color: #faf7f7;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-size: 0.95rem;
}

.sidebar__nav a:before {
  content: '';
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Icon styles for each nav item */
.sidebar__nav a:before {
  content: '';
  width: 28px;
  height: 28px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-right: 0.6rem;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Icon images - replace the file names below if you'd like different icons */
.sidebar__nav li:nth-child(1) a:before { background-image: url('images/home.png'); }
.sidebar__nav li:nth-child(2) a:before { background-image: url('images/about.png'); }
.sidebar__nav li:nth-child(3) a:before { background-image: url('images/projects.png'); }
.sidebar__nav li:nth-child(4) a:before { background-image: url('images/skills.png'); }
.sidebar__nav li:nth-child(5) a:before { background-image: url('images/email.png'); }

.sidebar__nav a:hover {
  color: #f2ecec;
  background-color: rgba(200, 150, 160, 0.3);
}

.sidebar__nav li.active a {
  color: #a19292;
  font-weight: 600;
  background-color: #ede5e5;
  box-shadow: 0 2px 8px rgba(109, 80, 80, 0.15);
}

.sidebar__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.sidebar__socials a img {
  width: 24px;
  height: 24px;
  filter: brightness(1) saturate(0.9);
  transition: filter 0.2s ease;
}

.sidebar__socials a:hover img {
  filter: brightness(0.5) saturate(1.1);
}

/* Main content --------------------------------------------------------- */
.content {
  margin-left: 250px;
  padding: 2rem;
}

/* Hero ---------------------------------------------------------------- */
.hero {
  color: #c4b3b9;
}

.hero__name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero__description {
  margin-bottom: 1.2rem;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #aaa;
}

/* Sections ------------------------------------------------------------- */
section h3 {
  color: #c4b3b9;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.projects__list,
.technologies__list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-card,
.tech-card {
  background: #c4b3b9;
  padding: 1rem;
  border-radius: 8px;
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.project-card h4 {
  font-size: 1rem;
  color: #111;
}

.tech-card img {
  width: 40px;
  height: 40px;
}

.tech-card div h4 {
  font-size: 1rem;
  color: #111;
  margin-bottom: 0.3rem;
}

.tech-card div p {
  font-size: 0.85rem;
  color: #333;
}

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.btn--primary {
  background: #c4b3b9;
  color: #111;
}

.btn--secondary {
  background: transparent;
  border: 2px solid #c4b3b9;
  color: #c4b3b9;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary:hover {
  background: #b39fa5;
}

.btn--secondary:hover {
  background: rgba(196, 179, 185, 0.1);
}

/* Navigation and Section Visibility ----------------------------------- */
.sidebar__nav li {
  margin: 0.8rem 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sidebar__nav li:first-child {
  opacity: 1;
}

.sidebar__nav li:hover {
  opacity: 0.8;
}

.sidebar__nav li.active {
  opacity: 1;
}

.sidebar__nav li.active a {
  color: #f7f2f2;
  font-weight: 700;
}

/* About Page ------------------------------------------------------------ */
.about-page {
  color: #c4b3b9;
  margin-top: 3rem;
}

.about-header {
  margin-bottom: 2rem;
}

.about-page__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.about-page__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #c4b3b9;
  margin-bottom: 1rem;
}

.about-page__description {
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.about-location img {
  width: 16px;
  height: 16px;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, #c4b3b9, transparent);
  margin: 2rem 0;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #c4b3b9;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-icon {
  width: 24px;
  height: 24px;
}

.education-item {
  margin-bottom: 1rem;
}

.education-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.college-name {
  color: #c4b3b9;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.affiliation {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.graduation-date {
  color: #aaa;
  font-size: 0.85rem;
}

/* Certifications ------------------------------------------------------- */
.certification-list {
  list-style: none;
}

.certification-list li {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cert-bullet {
  color: #c4b3b9;
  font-weight: bold;
  margin-right: 0.5rem;
}

.cert-link {
  color: #fff;
  font-weight: 500;
  transition: color 0.2s;
}

.cert-link:hover {
  color: #c4b3b9;
  text-decoration: underline;
}

.cert-provider {
  color: #aaa;
  font-size: 0.9rem;
}

.cert-view {
  color: #888;
  font-size: 0.85rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.cert-view:hover {
  color: #c4b3b9;
}

/* Experience ----------------------------------------------------------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item {
  padding-left: 1rem;
  border-left: 2px solid #c4b3b9;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.exp-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.exp-org {
  color: #c4b3b9;
  font-weight: 500;
  font-size: 0.95rem;
}

.exp-dates {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.exp-roles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exp-roles p {
  color: #aaa;
  font-size: 0.9rem;
}

/* Navigation and Section Visibility ----------------------------------- */
.sidebar__nav li {
  margin: 0.8rem 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.sidebar__nav li:first-child {
  opacity: 1;
}

.sidebar__nav li:hover {
  opacity: 0.8;
}

.sidebar__nav li.active {
  opacity: 1;
}

.sidebar__nav li.active a {
  color: #2c2c2c;
  font-weight: 700;
}

/* Projects page -------------------------------------------------------- */
/* Skills page ---------------------------------------------------------- */
.skills-page .page-header {
  color: #e6cfd2;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.skills-page .skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #cbb0b3;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
}

.skills-page .skill-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.skills-page .skill-card img {
  width: 50px;
  height: 50px;
}

.skills-page .skill-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.skills-page .skill-info p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: #333;
}

/* End skills page */
.projects-page .page-header {
  color: #e6cfd2;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: #cbb0b3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.project-card .proj-img {
  background: #0e0e0e;
  flex: 1 0 150px;
}

.project-card h4 {
  padding: 0.8rem;
  color: #3a2f36;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
}

/* Responsive adjustments ------------------------------------------------ */
@media (max-width: 768px) {
  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: flex;
  }

  .menu-toggle span {
    background-color: #3a3a3a;
  }

  /* Hide sidebar by default on mobile, show when active */
  .sidebar {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar__close {
    display: flex;
  }

  .sidebar__name {
    padding-top: 2rem;
    text-align: center;
  }

  .sidebar__nav ul {
    flex-direction: column;
  }

  .sidebar__nav a {
    padding: 0.75rem 1rem;
  }

  .content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }

  .project-card,
  .tech-card {
    flex: 1 1 100%;
  }

  .about-page {
    margin-top: 2rem;
  }

  .about-page__title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.skill-card img {
    color: #7e5656;
  width: 100%;
  max-width: 90px;
  height: auto;
}