/* base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f5f5;
  background-color: #050816;
}

/* vanta background */
#vanta-background {
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* layout */
.layout {
  display: flex;
  min-height: 100vh;
  padding: 24px;
  gap: 24px;
}

.sidebar-column {
  width: 280px;
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* sidebar */
.sidebar {
  background: rgba(10, 15, 30, 0.96);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.avatar-box {
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
}

.profile-img {
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.7);
}

.info-content {
  text-align: center;
}

.name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.title {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #a5b4fc;
}

/* contact buttons */
.contact-buttons-container {
  margin-top: 20px;
}

.contact-buttons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.contact-button-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.contact-button-link ion-icon {
  font-size: 1.1rem;
}

.contact-button-link:hover {
  background: rgba(79, 70, 229, 0.8);
  border-color: rgba(129, 140, 248, 0.7);
  transform: translateY(-1px);
}

/* navbar – animated SVG border */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}

.navbar__brand {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
}

/* base nav list */
.navbar__nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* mobile hamburger */
.navbar__mobile-toggle {
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e5e7eb;
}

.mobile-menu-pane {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: #111827;
  padding: 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.mobile-menu-pane.is-open {
  transform: translateX(0);
}

.mobile-menu-pane ul {
  margin-top: 4rem;
}

.mobile-menu-pane .nav-link {
  display: block;
  font-size: 1rem;
  padding: 1rem 0;
}

/* desktop layout + SVG border */
@media (min-width: 992px) {
  .navbar__mobile-toggle,
  .mobile-menu-pane {
    display: none;
  }

  .navbar__nav {
    display: block;
  }

  .nav-list {
    display: flex;
    gap: 1rem;
  }

  .nav-link {
    position: relative;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: #ffffff;
  }

  :focus-visible {
    outline: 2px solid #00aaff;
    border-radius: 8px;
  }

  .nav-link:focus-visible {
    outline: none;
  }

  .animated-border-svg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
  }

  .animated-border-svg rect {
    fill: none;
    stroke: #00aaff;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.6s ease-in-out;
  }

  .nav-link:hover .animated-border-svg rect,
  .nav-link:focus-visible .animated-border-svg rect {
    stroke-dashoffset: 0;
  }
}

/* pages & sections */
.page {
  display: none;
}

.page.active {
  display: block;
}

.section {
  background: rgba(10, 15, 30, 0.96);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* card hover */
.card {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 55%),
    rgba(10, 15, 30, 0.98);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.5);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.24), transparent 60%),
    rgba(10, 15, 30, 0.99);
}

/* headings & text */
.h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.h5 {
  margin: 0;
  font-size: 0.9rem;
}

p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* lists */
.blog-posts-list,
.timeline-list,
.skills-list,
.service-list,
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.blog-post,
.timeline-item,
.project-item {
  padding: 0;
  border-radius: 10px;
  background: transparent;
}

/* skills */
.skills-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
}

.title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skill-progress-bg {
  height: 4px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

/* certifications as chips */
.chip-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  color: #e5e7eb;
  cursor: default;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip:hover {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-color: transparent;
  transform: translateY(-1px);
}

/* responsive */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    padding: 16px;
  }

  .sidebar-column {
    width: 100%;
  }
}

/* projects links */
.project-link {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.project-link:hover {
  background: rgba(79, 70, 229, 0.8);
  border-color: rgba(129, 140, 248, 0.7);
  transform: translateY(-1px);
}
