*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: #0b0b0b;
  color: #e5e5e5;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Calibre', system-ui, sans-serif;
  color: var(--white);
  font-weight: inherit;
}

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

.container {
  margin: 0 auto;
  max-width: 1024px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 3rem 2rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.intro {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  p a {
    text-decoration: underline;
  }
}


/* Sidebar */
.sidebar {
  min-width: 300px;
  height: 100vh;
  position: static;
  top: 0;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
  }
}

.title {
  font-size: 2rem;
  font-weight: bold;
}

.profile-block p {
  margin: 0.5rem 0;
}

/* Icons */
.icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

/* Resume link */
.resume-link {
  margin-top: 1rem;
  color: #ff66cc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  transition: all 0.2s;
}

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

.arrow {
  width: 20px;
  transition: margin-left 0.2s;
}

.resume-link:hover .arrow {
  margin-left: 0.5rem;
}

/* 404 page */
.error-container {
  text-align: center;
  padding: 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.error-title {
  font-size: 2rem;
  font-weight: bold;
}

.home-btn {
  background: #7c3aed;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
  transition: background 0.2s;
}

.home-btn:hover {
  background: #6d28d9;
}

/* Cards Grid Layout */
.cards-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 4rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 4rem;
  }
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }
}