
/* ===== Base Setup ===== */
:root {
  --bg-light: #fffef9;
  --bg-dark: #1a1a1a;
  --text-light: #2e2e2e;
  --text-dark: #f0f0f0;
  --accent: #a65f00;
  --sidebar-bg: linear-gradient(180deg, #fdd76e, #fff4c2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px; /* reduced for better proportion */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.8;
}

/* ===== Layout ===== */
.layout {
  display: flex;
  flex: 1;
}

.sidebar {
  background: var(--sidebar-bg);
  width: 320px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
}

.profile-pic {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.sidebar h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.sidebar p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.sidebar nav a {
  display: block;
  margin: 0.75rem 0;
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ===== Main Content ===== */
main {
  flex: 1;
  margin-left: 320px; /* matches sidebar width */
  padding: 3rem 4rem;
  max-width: 1000px;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 1000;
}

.theme-toggle:hover {
  opacity: 0.9;
}

/* ===== Dark Mode ===== */
body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.dark-mode .sidebar {
  background: linear-gradient(180deg, #333, #222);
}

body.dark-mode a {
  color: var(--text-dark);
}

body.dark-mode a:hover {
  color: var(--accent);
}
