/* Layout 1: Side Navigation Layout */

body {
  min-height: 100vh;
}

/* Sidebar */
.site-sidebar {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: var(--space-lg) var(--space-md);
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-header {
  text-align: center;
}

.sidebar-header h1 {
  color: var(--color-bg);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.sidebar-subtitle {
  font-size: 1rem;
  color: var(--color-accent);
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
}

.sidebar-contact {
  font-size: 0.875rem;
  color: rgba(250, 248, 243, 0.8);
  line-height: 1.6;
  text-align: center;
}

.sidebar-contact a {
  color: var(--color-accent);
  border: none;
}

.sidebar-contact a:hover {
  color: var(--color-accent-bright);
}

/* Sidebar Navigation */
.sidebar-nav {
  margin-top: var(--space-md);
}

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

.sidebar-nav li {
  padding: 0;
  margin: 0;
}

.sidebar-nav li::before {
  display: none;
}

.sidebar-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: rgba(250, 248, 243, 0.8);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  border-bottom: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--color-accent);
  color: var(--color-accent-bright);
}

/* Main Content */
.site-main {
  margin-left: 320px;
  /* Top padding matches the sidebar's (--space-lg) so the first page title
     lines up exactly with the sidebar title; roomier bottom padding kept. */
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  min-height: 100vh;
}

.content-section {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out backwards;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }

.content-section h2 {
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.content-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .site-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .site-main {
    margin-left: 0;
    padding: var(--space-md);
  }
}

@media (max-width: 768px) {
  .sidebar-header h1 {
    font-size: 1.75rem;
  }
}
