@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

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

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.navbar {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.nav-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  border-color: white;
}

.nav-btn:active {
  transform: translateY(0);
}

.container {
  max-width: 850px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 40px;
  margin: 20px;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: 3rem;
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
    width: min(1100px, calc(100% - 40px));
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 35px;
    margin: 20px;
    backdrop-filter: blur(12px);
}

.sidebar-toggle {
    align-self: flex-start;
    display: inline-block;
    margin-bottom: 25px;
    padding: 14px 24px;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sidebar-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(102, 126, 234, 0.25);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 60, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 20;
}

.sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(420px, calc(100vw - 40px));
    max-height: min(90vh, 640px);
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    display: grid;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(23, 30, 80, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(18px);
    z-index: 30;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.sidebar.open,
.overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar.open {
    transform: translate(-50%, -50%) scale(1);
}

.sidebar-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.12);
    color: #333;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-close:hover {
    background: rgba(102, 126, 234, 0.22);
}

.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 18px;
    padding: 25px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 10px 20px rgba(102, 126, 234, 0.12);
}

.content {
    display: flex;
    flex-direction: column;
}

.intro {
    margin: 0 auto 30px auto;
    max-width: 780px;
    color: #555;
    font-size: 1.05rem;
    background: rgba(102, 126, 234, 0.08);
    border-left: 4px solid #667eea;
    padding: 18px 22px;
    border-radius: 14px;
}

/* h1 {
    font-size: 3rem;
    color: #4a4a4a;
    text-align: left;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
} */

h1::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 10px auto;
  border-radius: 2px;
}

h2 {
  font-size: 1.8rem;
  color: #667eea;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  transition: all 0.3s ease;
}

h2:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

ul,
ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

li:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

ul li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

ol {
  counter-reset: item;
}

ol li {
  counter-increment: item;
}

ol li::before {
  content: counter(item) '. ';
  color: #667eea;
  font-weight: bold;
  margin-right: 5px;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
