/* Base layout and typography -- MOBILE FIRST */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #000;
  background: #fff;
  /* Stacks sidebar and content vertically on mobile by default */
  display: flex;
  flex-direction: column; 
}

/* Sidebar navigation -- MOBILE STYLES */
.sidebar {
  background-color: #111;
  color: #fff;
  /* On mobile, it acts like a header */
  width: 100%; 
  padding: 24px;
  position: relative; /* Changed from 'fixed' */
  box-sizing: border-box; /* Ensures padding is included in the width */
  display: flex;
  flex-direction: column;
}

.sidebar h2 {
  margin-top: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sidebar nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.sidebar nav a:hover {
  color: #bb0000; /* OSU red accent */
}

/* Content area -- MOBILE STYLES */
.content {
  /* Margin is removed for mobile */
  margin-left: 0; 
  padding: 24px; /* Slightly reduced padding for small screens */
  max-width: 800px;
}

h1 {
  font-size: 28px;
  border-bottom: 2px solid #bb0000;
  padding-bottom: 6px;
  font-weight: 700;
  margin-top: 24px; /* Reduced top margin */
}

h2 {
  font-size: 22px;
  color: #bb0000;
  font-weight: 600;
}

ul {
  padding-left: 20px;
}

a {
  color: #bb0000;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Profile picture */
#profile-pic-container {
  margin-top: 16px;
  margin-bottom: 16px;
}
.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

/* Projects section */
.project {
  margin-bottom: 20px;
  background: #f8f8f8;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #bb0000;
}
.project-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-image-placeholder {
  width: 24px;
  height: 24px;
  background-color: #bb0000;
  flex-shrink: 0;
}



/* Footer */
footer {
  margin-top: 48px;
  text-align: center;
  color: #555;
  font-size: 14px;
}


/* -------------------------------------------------- */
/* DESKTOP STYLES - Applied only on screens 768px and wider */
/* -------------------------------------------------- */
@media (min-width: 768px) {
  body {
    /* Revert to side-by-side layout */
    flex-direction: row; 
  }

  .sidebar {
    /* Restore fixed position and width for desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    min-height: 100vh;
  }

  .content {
    /* Add back the margin to make space for the fixed sidebar */
    margin-left: 280px; 
    padding: 40px;
  }
  
  h1 {
      margin-top: 48px; /* Restore original margin */
  }
}

/* Add this to your styles.css file */
.project h2 a {
  color: inherit; /* Makes the link the same color as other h2 elements */
  text-decoration: none; /* Removes the default underline */
}

.project h2 a:hover {
  color: #bb0000; /* Changes color on hover for feedback */
  text-decoration: underline; /* Adds an underline on hover */
}
