:root {
  --primary-color: #e4a257;
  --accent-color: #e7e73f;
  --secondary-color: #84e4e2;
  --text-primary: #1a1a1a;
  --text-secondary: #666;
  --bg-light: #012305;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
}

.container {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), #2a6b45);
  color: white;
  box-shadow: var(--shadow);
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.header .social {
  display: flex;
  gap: 1rem;
}

.header .social a {
  color: white;
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.header .social a:hover {
  transform: translateY(-2px);
  color: var(--accent-color);
}

/* Main Layout */
.main {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  padding: 2rem;
}

/* Sidebar */
.sidebar {
  background: white;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin-top: 1rem;
}

/* Content */
.content {
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.nav-menu {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  max-width: 800px;
}

.nav-menu li {
  position: relative;
  z-index: 1;
}

.nav-menu li:hover {
  z-index: 10000; /* Elevate the entire list item when hovered */
}

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
}

.nav-menu a[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: fixed; /* Changed from absolute to fixed */
  left: auto;
  top: auto;
  transform: none;
  margin-left: 15px;
  padding: 8px 12px;
  background: rgba(213, 146, 13, 0.9);
  color: rgb(38, 38, 35);
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999; /* Much higher z-index */
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: normal; /* Changed from nowrap */
  max-width: 450px; /* Adjust this width as needed */
  width: max-content; /* Add this line - allows tooltip to use natural width up to max-width */
  line-height: 1.4; /* Better readability for multi-line text */
}

.nav-menu a[data-tooltip]:hover::before {
  content: '';
  position: fixed; /* Changed from absolute to fixed */
  border: 6px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.9);
  z-index: 9999; /* Much higher z-index */
  pointer-events: none;
}

/* Position tooltip to the right of the link */
.nav-menu li:hover a[data-tooltip]::after {
  left: calc(var(--mouse-x, 0px) + 50px);
  top: calc(var(--mouse-y, 0px) + 50px);
}

.nav-menu li:hover a[data-tooltip]::before {
  left: calc(var(--mouse-x, 0px) + 8px);
  top: calc(var(--mouse-y, 0px) - 6px);
}

.nav-menu li a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
  color: var(--primary-color);
}

.nav-menu li a i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  width: 2rem;
  transition: color 0.3s ease;
}

.nav-menu li a:hover i {
  color: var(--accent-color);
}

/* Footer */
.footer {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color), #2a6b45);
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 2rem;
  }

  .content {
    padding-left: 0;
  }

  .nav-menu {
    grid-template-columns: 1fr;
  }

  .content h2 {
    font-size: 1.2rem;
    text-align: center;
  }

  .sidebar {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .nav-menu li a {
    padding: 1rem;
    gap: 0.75rem;
  }
}
