/* Modern CSS with Variables */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #ff6b7a;
  --dark: #1d1e20;
  --darker: #121212;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #343a40;
  --light-gray: #adb5bd;
  --accent: #4361ee;
  --accent-dark: #3a56d4;
  --success: #4cc9f0;
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, var(--darker) 0%, #1a1a1a 100%);
  background-attachment: fixed;
  color: var(--light);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: rgba(29, 30, 32, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(230, 57, 70, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  flex-direction: column;
}

.logo {
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  letter-spacing: -0.5px;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.logo-text {
  color: var(--light-gray);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--light);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  position: relative;
  transition: var(--transition);
  border-radius: var(--border-radius);
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  background-color: rgba(230, 57, 70, 0.1);
}

/* Main */
main{
  display: flex; 
  justify-content: center;
  align-items: center;
  padding-top: 50px;
}

h1{
  text-align: center;
  font-size: 40px;
}

img , table{
  width: 520px;
  display: block;
  margin: 0 auto;
}

  ol.toc {
    list-style-type: decimal; 
    padding-left: 20px;
    font-family: Arial, sans-serif;
  }
  ol.toc li {
    margin: 8px 0;
  }
  ol.toc li a {
    text-decoration: none;
    color: var(--light);
    transition: color 0.3s;
  }
  ol.toc li a:hover {
    color: #EA5764;
  }
  h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }

/* Footer */
footer {
  background-color: rgba(29, 30, 32, 0.9);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--light-gray);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1.8rem;
}

.social-links a {
  color: var(--light-gray);
  font-size: 1.3rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
  color: var(--primary);
  background-color: rgba(230, 57, 70, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  :root {
    --border-radius: 10px;
  }
  
  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --border-radius: 8px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-content {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(29, 30, 32, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 80px 0 0 0;
    height: 100%;
    align-items: stretch;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    padding: 1.2rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    gap: 1rem;
  }
  
  nav a:hover,
  nav a.active {
    background-color: rgba(230, 57, 70, 0.15);
  }
 
  

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Hamburger menu animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 576px) {
  :root {
    --border-radius: 6px;
  }
  
  .container {
    width: 95%;
    padding: 0 15px;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  nav {
    width: 100%;
  }
  
  nav ul {
    padding: 70px 0 0 0;
  }
  
  nav a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    gap: 0.8rem;
  }
}

/* Global link styles to ensure no underline */
a[href] {
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
  }
