/* Reset */
body {
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  color: var(--color-text-primary);
  overflow-x: hidden;
  height: 100vh;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--color-secondary);
}

::-webkit-scrollbar-track {
  background: var(--color-secondary);
  border-radius: 10px;
  border: 2px solid var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 10px;
  
}

/* Palette */
:root {
  --color-background: #fdf6e3;
  --color-surface: #ffffff;

  --color-primary: #4f46e5;
  --color-secondary: #06b6d4;
  --color-accent: #f97316;

  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-danger: #ef4444;

  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-text-invert: #f8fafc;
}


/* navbar */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  max-width: 75px;
  height: auto;
  display: block;
}

.navbarCenter {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
}

header button {
  background: var(--color-secondary);
  border: none;
  color: var(--color-text-invert);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

header button:hover {
  background: var(--color-accent);
  color: var(--color-text-invert);
  transform: translateY(-2px);
}

header button:active {
  transform: scale(0.95);
}

header button.active {
  background: var(--color-accent);
  color: var(--color-text-primary);
}

header button.active:hover {
  background: var(--color-accent);
  transform: none;
}

header button a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.dropdownIcon {
  width: 32px;
  aspect-ratio: 1/1;
}

.navbarMobile {
  display: none;
}

.navSummary::marker {
  content: "";
}

.navDetails {
  position: relative;
}

.navButtons {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 590px) {
  .navbarCenter {
    display: none;
  }

  .navbarMobile {
    display: flex;
  }

}


/* footer */

footer {
  text-align: center;
  padding: 1rem;
  background: var(--color-primary);
  color: var(--color-text-invert);
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.main-container-home {
 min-height: calc(100% - 248px);
}

.main-container-knowledge {
 min-height: calc(100% - 232px);
}

/* aboutme page */

.aboutMe-container {
  max-width: 700px;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aboutMe-container h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.aboutMe-container img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--color-secondary);
}

.aboutMe-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}


/* knowledge */

/* Skills Section */
.skills-section {
  max-width: 500px;
  /* narrow for a column */
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--color-surface);
  border-radius: 12px;
}

.skills-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  text-align: center;
}

/* Skills List */
.skills-list {
  list-style: none;
  /* remove default bullets */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  /* vertical column */
  gap: 1rem;
  /* spacing between items */
}

.skill-item {
  position: relative;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--color-primary);
  /* visual accent */
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s, border-color 0.3s;
}

.skill-item::before {
  content: '★';
  margin-right: 0.5rem;
  color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .skills-section {
    padding: 1.5rem;
  }
}


/* Projects */

.projects-section {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: var(--color-surface);
  border-radius: 12px;
  text-align: center;
}

.projects-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}


.projects-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.projects-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.project-image {
  width: auto;
  max-width: 300px;
  max-height: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}


.project-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* GitHub Link */
.projects-github-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-primary);
  color: var(--color-text-invert);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.projects-github-link:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .project-image {
    width: 90%;
    max-height: none;
  }

  .projects-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-section {
    max-width: 90%;
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .project-image {
    width: 90%;
  }

  .projects-row {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* hobbies */

/* Hide the default disclosure arrow */
.skill-item > summary::-webkit-details-marker {
  display: none;          /* Chrome, Safari, Edge */
}
.skill-item > summary::marker {
  content: none;          /* Firefox */
}

